Only enable the system tray once.
This commit is contained in:
parent
e0d82901e3
commit
b645630773
|
@ -115,6 +115,7 @@ class MainWindow:
|
||||||
def quit(self):
|
def quit(self):
|
||||||
# Stop the update timer from running
|
# Stop the update timer from running
|
||||||
gobject.source_remove(self.update_timer)
|
gobject.source_remove(self.update_timer)
|
||||||
|
del self.systemtray
|
||||||
del self.menubar
|
del self.menubar
|
||||||
del self.toolbar
|
del self.toolbar
|
||||||
del self.torrentview
|
del self.torrentview
|
||||||
|
|
|
@ -45,8 +45,8 @@ class SystemTray:
|
||||||
self.config = ConfigManager("gtkui.conf")
|
self.config = ConfigManager("gtkui.conf")
|
||||||
self.config.register_set_function("enable_system_tray",
|
self.config.register_set_function("enable_system_tray",
|
||||||
self.on_enable_system_tray_set)
|
self.on_enable_system_tray_set)
|
||||||
if self.config["enable_system_tray"]:
|
#if self.config["enable_system_tray"]:
|
||||||
self.enable()
|
# self.enable()
|
||||||
|
|
||||||
def enable(self):
|
def enable(self):
|
||||||
"""Enables the system tray icon."""
|
"""Enables the system tray icon."""
|
||||||
|
|
Loading…
Reference in New Issue