diff options
author | Chase Sterling <chase.sterling@gmail.com> | 2013-02-10 17:30:25 -0500 |
---|---|---|
committer | Chase Sterling <chase.sterling@gmail.com> | 2013-02-10 17:30:25 -0500 |
commit | 8c106ce8c4c0794ddd63e8e8f98b097221a56a52 (patch) | |
tree | 45944ea2333b4da97045ccefed2ed5e1de3ac321 /deluge/ui/gtkui/statusbar.py | |
parent | b4f5e78a775503a5501e2eba7eee73dfa0e1955a (diff) | |
parent | fbdda1b3a5db6203f1993a03eed92ca489903aab (diff) | |
download | deluge-8c106ce8c4c0794ddd63e8e8f98b097221a56a52.tar.gz deluge-8c106ce8c4c0794ddd63e8e8f98b097221a56a52.tar.bz2 deluge-8c106ce8c4c0794ddd63e8e8f98b097221a56a52.zip |
Merge remote-tracking branch 'bro/master-daemon-optimize-speed'
Conflicts:
deluge/core/alertmanager.py
deluge/core/torrentmanager.py
Diffstat (limited to 'deluge/ui/gtkui/statusbar.py')
-rw-r--r-- | deluge/ui/gtkui/statusbar.py | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/deluge/ui/gtkui/statusbar.py b/deluge/ui/gtkui/statusbar.py index f4219900c..d89880782 100644 --- a/deluge/ui/gtkui/statusbar.py +++ b/deluge/ui/gtkui/statusbar.py @@ -194,16 +194,14 @@ class StatusBar(component.Component): self.health = False + def update_config_values(configs): + self._on_max_connections_global(configs["max_connections_global"]) + self._on_max_download_speed(configs["max_download_speed"]) + self._on_max_upload_speed(configs["max_upload_speed"]) + self._on_dht(configs["dht"]) # Get some config values - client.core.get_config_value( - "max_connections_global").addCallback(self._on_max_connections_global) - client.core.get_config_value( - "max_download_speed").addCallback(self._on_max_download_speed) - client.core.get_config_value( - "max_upload_speed").addCallback(self._on_max_upload_speed) - client.core.get_config_value("dht").addCallback(self._on_dht) - - self.send_status_request() + client.core.get_config_values(["max_connections_global", "max_download_speed", + "max_upload_speed", "dht"]).addCallback(update_config_values) def stop(self): # When stopped, we just show the not connected thingy |