mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +00:00
fix tray locking pop-up on quit while disabled
This commit is contained in:
parent
ae30cdb677
commit
85767b148a
1 changed files with 9 additions and 2 deletions
|
@ -176,7 +176,10 @@ class SystemTray:
|
||||||
if self.window.visible():
|
if self.window.visible():
|
||||||
self.window.quit()
|
self.window.quit()
|
||||||
else:
|
else:
|
||||||
|
if self.config["lock_tray"] == True:
|
||||||
self.unlock_tray("quitui")
|
self.unlock_tray("quitui")
|
||||||
|
else:
|
||||||
|
self.window.quit()
|
||||||
|
|
||||||
def on_menuitem_quitdaemon_activate(self, menuitem):
|
def on_menuitem_quitdaemon_activate(self, menuitem):
|
||||||
log.debug("on_menuitem_quitdaemon_activate")
|
log.debug("on_menuitem_quitdaemon_activate")
|
||||||
|
@ -184,7 +187,11 @@ class SystemTray:
|
||||||
self.window.quit()
|
self.window.quit()
|
||||||
functions.shutdown()
|
functions.shutdown()
|
||||||
else:
|
else:
|
||||||
|
if self.config["lock_tray"] == True:
|
||||||
self.unlock_tray("quitdaemon")
|
self.unlock_tray("quitdaemon")
|
||||||
|
else:
|
||||||
|
self.window.quit()
|
||||||
|
functions.shutdown()
|
||||||
|
|
||||||
def build_menu_radio_list(self, value_list, callback, pref_value=None,
|
def build_menu_radio_list(self, value_list, callback, pref_value=None,
|
||||||
suffix=None, show_notset=False, notset_label=None, notset_lessthan=0,
|
suffix=None, show_notset=False, notset_label=None, notset_lessthan=0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue