new gui fixed error display when daemon is not running
This commit is contained in:
parent
c4234d33f0
commit
f826a4c5e8
2 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@ class Application(tk.Frame):
|
|||
self.core = CoreClient(self, proxy)
|
||||
self.setup_app()
|
||||
self.draw()
|
||||
self.core.set_up()
|
||||
self.core.setup()
|
||||
|
||||
def setup_scaling(self):
|
||||
self.fonts_size = {name: font.nametofont(name)["size"] for name in font.names()}
|
||||
|
|
|
@ -446,7 +446,7 @@ class CoreClient:
|
|||
master = parent_frame
|
||||
self.app.after(0, show_grpc_error, e, master, self.app)
|
||||
|
||||
def set_up(self):
|
||||
def setup(self):
|
||||
"""
|
||||
Query sessions, if there exist any, prompt whether to join one
|
||||
"""
|
||||
|
@ -480,7 +480,7 @@ class CoreClient:
|
|||
x.node_type: set(x.services) for x in response.defaults
|
||||
}
|
||||
except grpc.RpcError as e:
|
||||
self.app.after(0, show_grpc_error, e, self.app, self.app)
|
||||
show_grpc_error(e, self.app, self.app)
|
||||
self.app.close()
|
||||
|
||||
def edit_node(self, core_node: core_pb2.Node):
|
||||
|
|
Loading…
Add table
Reference in a new issue