Fix preferences when not connected to daemon.

This commit is contained in:
Andrew Resch 2008-01-21 10:02:30 +00:00
parent a461074da2
commit 762f8a52af
1 changed files with 10 additions and 0 deletions

View File

@ -96,6 +96,10 @@ class Preferences(component.Component):
"on_test_port_clicked": self.on_test_port_clicked
})
# These get updated by requests done to the core
self.all_plugins = []
self.enabled_plugins = []
def __del__(self):
del self.gtkui_config
@ -212,6 +216,10 @@ class Preferences(component.Component):
("value", self.core_config["max_connections_per_torrent"]),
"spin_max_upload_slots_per_torrent": \
("value", self.core_config["max_upload_slots_per_torrent"]),
"spin_max_download_per_torrent": \
("value", self.core_config["max_download_speed_per_torrent"]),
"spin_max_upload_per_torrent": \
("value", self.core_config["max_upload_speed_per_torrent"]),
"spin_daemon_port": \
("value", self.core_config["daemon_port"]),
"chk_allow_remote_connections": \
@ -266,6 +274,8 @@ class Preferences(component.Component):
"spin_max_upload_slots_global",
"spin_max_connections_per_torrent",
"spin_max_upload_slots_per_torrent",
"spin_max_download_per_torrent",
"spin_max_upload_per_torrent",
"spin_daemon_port",
"chk_allow_remote_connections"
]