enable start in tray

This commit is contained in:
Marcos Pinto 2007-09-30 09:26:05 +00:00
parent 4a858a70bc
commit c6c649485e
1 changed files with 5 additions and 1 deletions

View File

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