Only enable the system tray once.
This commit is contained in:
parent
e0d82901e3
commit
b645630773
|
@ -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
|
||||
|
|
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue