mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-22 04:24:51 +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():
|
||||
self.window.quit()
|
||||
else:
|
||||
self.unlock_tray("quitui")
|
||||
if self.config["lock_tray"] == True:
|
||||
self.unlock_tray("quitui")
|
||||
else:
|
||||
self.window.quit()
|
||||
|
||||
def on_menuitem_quitdaemon_activate(self, menuitem):
|
||||
log.debug("on_menuitem_quitdaemon_activate")
|
||||
|
@ -184,7 +187,11 @@ class SystemTray:
|
|||
self.window.quit()
|
||||
functions.shutdown()
|
||||
else:
|
||||
self.unlock_tray("quitdaemon")
|
||||
if self.config["lock_tray"] == True:
|
||||
self.unlock_tray("quitdaemon")
|
||||
else:
|
||||
self.window.quit()
|
||||
functions.shutdown()
|
||||
|
||||
def build_menu_radio_list(self, value_list, callback, pref_value=None,
|
||||
suffix=None, show_notset=False, notset_label=None, notset_lessthan=0,
|
||||
|
|
Loading…
Add table
Reference in a new issue