Fix bug in systemtray when changing some config options when the

systemtray is not enabled.
This commit is contained in:
Andrew Resch 2008-11-29 03:15:27 +00:00
parent 6b22fb236e
commit 79684c3b11
2 changed files with 1 additions and 2 deletions

View File

@ -129,7 +129,6 @@ class Signals(component.Component):
def config_value_changed(self, key, value): def config_value_changed(self, key, value):
log.debug("config_value_changed signal received..") log.debug("config_value_changed signal received..")
component.get("StatusBar").config_value_changed(key, value) component.get("StatusBar").config_value_changed(key, value)
component.get("SystemTray").config_value_changed(key, value)
def torrent_queue_changed(self): def torrent_queue_changed(self):
log.debug("torrent_queue_changed signal received..") log.debug("torrent_queue_changed signal received..")
@ -154,4 +153,3 @@ class Signals(component.Component):
def torrent_state_changed(self, value): def torrent_state_changed(self, value):
log.debug("torrent_state_changed: %s", value) log.debug("torrent_state_changed: %s", value)

View File

@ -112,6 +112,7 @@ class SystemTray(component.Component):
self.tray_glade.get_widget("menuitem_quitdaemon").hide() self.tray_glade.get_widget("menuitem_quitdaemon").hide()
self.tray_glade.get_widget("separatormenuitem4").hide() self.tray_glade.get_widget("separatormenuitem4").hide()
component.get("Signals").connect_to_signal("config_value_changed", self.config_value_changed)
if client.get_core_uri() == None: if client.get_core_uri() == None:
# Hide menu widgets because we're not connected to a host. # Hide menu widgets because we're not connected to a host.
for widget in self.hide_widget_list: for widget in self.hide_widget_list: