mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
fix password locking
This commit is contained in:
parent
d4b79ec6f7
commit
2ebfa02a11
1 changed files with 5 additions and 3 deletions
|
@ -391,6 +391,8 @@ class DelugeGTK:
|
|||
self.window.show()
|
||||
elif comingnext == "prefwinshow":
|
||||
self.show_preferences_dialog()
|
||||
elif comingnext == "plugwinshow":
|
||||
self.show_plugin_dialog()
|
||||
elif comingnext == "quitus":
|
||||
self.window.hide()
|
||||
self.shutdown()
|
||||
|
@ -678,7 +680,7 @@ class DelugeGTK:
|
|||
|
||||
def show_preferences_dialog_clicked(self, arg=None):
|
||||
if self.config.get("enable_system_tray") and \
|
||||
self.config.get("lock_tray"):
|
||||
self.config.get("lock_tray") and not self.window.get_property("visible"):
|
||||
self.unlock_tray("prefwinshow")
|
||||
else:
|
||||
self.show_preferences_dialog()
|
||||
|
@ -691,8 +693,8 @@ class DelugeGTK:
|
|||
|
||||
def show_plugin_dialog_clicked(self, arg=None):
|
||||
if self.config.get("enable_system_tray") and \
|
||||
self.config.get("lock_tray"):
|
||||
self.unlock_tray("prefwinshow")
|
||||
self.config.get("lock_tray") and not self.window.get_property("visible"):
|
||||
self.unlock_tray("plugwinshow")
|
||||
else:
|
||||
self.show_plugin_dialog(plugin_tab=True)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue