mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +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()
|
self.window.show()
|
||||||
elif comingnext == "prefwinshow":
|
elif comingnext == "prefwinshow":
|
||||||
self.show_preferences_dialog()
|
self.show_preferences_dialog()
|
||||||
|
elif comingnext == "plugwinshow":
|
||||||
|
self.show_plugin_dialog()
|
||||||
elif comingnext == "quitus":
|
elif comingnext == "quitus":
|
||||||
self.window.hide()
|
self.window.hide()
|
||||||
self.shutdown()
|
self.shutdown()
|
||||||
|
@ -678,7 +680,7 @@ class DelugeGTK:
|
||||||
|
|
||||||
def show_preferences_dialog_clicked(self, arg=None):
|
def show_preferences_dialog_clicked(self, arg=None):
|
||||||
if self.config.get("enable_system_tray") and \
|
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")
|
self.unlock_tray("prefwinshow")
|
||||||
else:
|
else:
|
||||||
self.show_preferences_dialog()
|
self.show_preferences_dialog()
|
||||||
|
@ -691,8 +693,8 @@ class DelugeGTK:
|
||||||
|
|
||||||
def show_plugin_dialog_clicked(self, arg=None):
|
def show_plugin_dialog_clicked(self, arg=None):
|
||||||
if self.config.get("enable_system_tray") and \
|
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")
|
self.unlock_tray("plugwinshow")
|
||||||
else:
|
else:
|
||||||
self.show_plugin_dialog(plugin_tab=True)
|
self.show_plugin_dialog(plugin_tab=True)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue