mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Fix "quit and shutdown daemon" option
This commit is contained in:
parent
0e47cfd49e
commit
7e7944a085
1 changed files with 3 additions and 2 deletions
|
@ -248,8 +248,9 @@ class MenuBar(component.Component):
|
|||
def on_menuitem_quitdaemon_activate(self, data=None):
|
||||
log.debug("on_menuitem_quitdaemon_activate")
|
||||
# Tell the core to shutdown
|
||||
client.daemon.shutdown()
|
||||
self.window.quit()
|
||||
def on_shutdown(result):
|
||||
self.window.quit()
|
||||
client.daemon.shutdown().addCallback(on_shutdown)
|
||||
|
||||
def on_menuitem_quit_activate(self, data=None):
|
||||
log.debug("on_menuitem_quit_activate")
|
||||
|
|
Loading…
Add table
Reference in a new issue