Fix opening the preferences window when not connected to a daemon

This commit is contained in:
Andrew Resch 2009-07-13 18:26:40 +00:00
parent c4c6d1d511
commit bdcc0047a8
1 changed files with 4 additions and 2 deletions

View File

@ -418,7 +418,8 @@ class Preferences(component.Component):
"spin_seed_time_ratio_limit",
"spin_seed_time_limit",
"spin_cache_size",
"spin_cache_expiry"
"spin_cache_expiry",
"button_cache_refresh"
]
for t in ("peer", "web_seed", "tracker", "dht"):
core_widget_list.append("spin_proxy_port_%s" % t)
@ -489,7 +490,8 @@ class Preferences(component.Component):
self.glade.get_widget("rad_ntf_tls").set_active(True)
## Cache tab ##
self.__update_cache_status()
if client.connected():
self.__update_cache_status()
## Plugins tab ##
all_plugins = self.all_plugins