fix password locking

This commit is contained in:
Marcos Pinto 2007-08-26 21:03:33 +00:00
commit 2ebfa02a11

View file

@ -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)