Fix bug in systemtray when changing some config options when the
systemtray is not enabled.
This commit is contained in:
parent
6b22fb236e
commit
79684c3b11
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue