mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix preferences when not connected to daemon.
This commit is contained in:
parent
a461074da2
commit
762f8a52af
1 changed files with 10 additions and 0 deletions
|
@ -95,6 +95,10 @@ class Preferences(component.Component):
|
||||||
"on_toggle": self.on_toggle,
|
"on_toggle": self.on_toggle,
|
||||||
"on_test_port_clicked": self.on_test_port_clicked
|
"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):
|
def __del__(self):
|
||||||
del self.gtkui_config
|
del self.gtkui_config
|
||||||
|
@ -212,6 +216,10 @@ class Preferences(component.Component):
|
||||||
("value", self.core_config["max_connections_per_torrent"]),
|
("value", self.core_config["max_connections_per_torrent"]),
|
||||||
"spin_max_upload_slots_per_torrent": \
|
"spin_max_upload_slots_per_torrent": \
|
||||||
("value", self.core_config["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": \
|
"spin_daemon_port": \
|
||||||
("value", self.core_config["daemon_port"]),
|
("value", self.core_config["daemon_port"]),
|
||||||
"chk_allow_remote_connections": \
|
"chk_allow_remote_connections": \
|
||||||
|
@ -266,6 +274,8 @@ class Preferences(component.Component):
|
||||||
"spin_max_upload_slots_global",
|
"spin_max_upload_slots_global",
|
||||||
"spin_max_connections_per_torrent",
|
"spin_max_connections_per_torrent",
|
||||||
"spin_max_upload_slots_per_torrent",
|
"spin_max_upload_slots_per_torrent",
|
||||||
|
"spin_max_download_per_torrent",
|
||||||
|
"spin_max_upload_per_torrent",
|
||||||
"spin_daemon_port",
|
"spin_daemon_port",
|
||||||
"chk_allow_remote_connections"
|
"chk_allow_remote_connections"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue