From f3f3b3669f163f9abc43e7b91fdbf485b786856a Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 12 Dec 2009 22:38:26 +0000 Subject: [PATCH] Fix #782 do not ask for tray password when window is not minimized to tray --- deluge/ui/gtkui/systemtray.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/systemtray.py b/deluge/ui/gtkui/systemtray.py index 6b1ca8593..4c0be9564 100644 --- a/deluge/ui/gtkui/systemtray.py +++ b/deluge/ui/gtkui/systemtray.py @@ -274,7 +274,7 @@ class SystemTray(component.Component): """Called when the tray icon is left clicked.""" self.blink(False) - if self.window.active(): + if self.window.active() or self.window.visible(): self.window.hide() else: if self.config["lock_tray"]: