Fix "quit and shutdown daemon" option
This commit is contained in:
parent
0e47cfd49e
commit
7e7944a085
|
@ -248,8 +248,9 @@ class MenuBar(component.Component):
|
||||||
def on_menuitem_quitdaemon_activate(self, data=None):
|
def on_menuitem_quitdaemon_activate(self, data=None):
|
||||||
log.debug("on_menuitem_quitdaemon_activate")
|
log.debug("on_menuitem_quitdaemon_activate")
|
||||||
# Tell the core to shutdown
|
# Tell the core to shutdown
|
||||||
client.daemon.shutdown()
|
def on_shutdown(result):
|
||||||
self.window.quit()
|
self.window.quit()
|
||||||
|
client.daemon.shutdown().addCallback(on_shutdown)
|
||||||
|
|
||||||
def on_menuitem_quit_activate(self, data=None):
|
def on_menuitem_quit_activate(self, data=None):
|
||||||
log.debug("on_menuitem_quit_activate")
|
log.debug("on_menuitem_quit_activate")
|
||||||
|
|
Loading…
Reference in New Issue