From c6c649485e9fa4426eb823ad78b3968b8529038c Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Sun, 30 Sep 2007 09:26:05 +0000 Subject: [PATCH] enable start in tray --- deluge/ui/gtkui/mainwindow.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/mainwindow.py b/deluge/ui/gtkui/mainwindow.py index 5be1eb048..ec7c7118b 100644 --- a/deluge/ui/gtkui/mainwindow.py +++ b/deluge/ui/gtkui/mainwindow.py @@ -84,7 +84,11 @@ class MainWindow: def start(self): """Start the update thread and show the window""" self.update_timer = gobject.timeout_add(1000, self.update) - self.show() + if not(self.config["start_in_tray"] and \ + self.config["enable_system_tray"]) and not \ + self.window.get_property("visible"): + log.debug("Showing window") + self.show() def update(self): # Don't update the UI if the the window is minimized.