From d2d9269c87074986b6dae1a3fbb7a9b0f0aad82b Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Wed, 31 Mar 2010 18:15:29 -0700 Subject: [PATCH] Close #1205 add free space icon to gtkui --- 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 2ed896782..c2b44e333 100644 --- a/deluge/ui/gtkui/systemtray.py +++ b/deluge/ui/gtkui/systemtray.py @@ -273,7 +273,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"]: