Only enable the system tray once.

This commit is contained in:
Andrew Resch 2007-09-29 05:32:42 +00:00
parent e0d82901e3
commit b645630773
2 changed files with 3 additions and 2 deletions

View File

@ -115,6 +115,7 @@ class MainWindow:
def quit(self):
# Stop the update timer from running
gobject.source_remove(self.update_timer)
del self.systemtray
del self.menubar
del self.toolbar
del self.torrentview

View File

@ -45,8 +45,8 @@ class SystemTray:
self.config = ConfigManager("gtkui.conf")
self.config.register_set_function("enable_system_tray",
self.on_enable_system_tray_set)
if self.config["enable_system_tray"]:
self.enable()
#if self.config["enable_system_tray"]:
# self.enable()
def enable(self):
"""Enables the system tray icon."""