summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2013-02-13 01:26:52 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2013-02-13 01:30:47 +0000
commit7c6d1f30fff607549c0126093a693c7de99a5cd7 (patch)
treebb7cd4d00af803896d128f71c9a8ffa1f54e8504
parent891160015532f3954cf655cbf678040ee60cc5be (diff)
downloaddeluge-7c6d1f30fff607549c0126093a693c7de99a5cd7.tar.gz
deluge-7c6d1f30fff607549c0126093a693c7de99a5cd7.tar.bz2
deluge-7c6d1f30fff607549c0126093a693c7de99a5cd7.zip
Fix GTK ConnMgr update after stopping daemon and reduce wait time
-rw-r--r--deluge/ui/gtkui/connectionmanager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/deluge/ui/gtkui/connectionmanager.py b/deluge/ui/gtkui/connectionmanager.py
index 154b7d594..71aab09fe 100644
--- a/deluge/ui/gtkui/connectionmanager.py
+++ b/deluge/ui/gtkui/connectionmanager.py
@@ -555,7 +555,7 @@ that you forgot to install the deluged package or it's not in your PATH.")).run(
# Call the shutdown method on the daemon
def on_daemon_shutdown(d):
# Update display to show change
- self.__update_list()
+ reactor.callLater(0.8, self.__update_list)
if client.connected() and client.connection_info() == (host, port, user):
client.daemon.shutdown().addCallback(on_daemon_shutdown)
else:
@@ -569,7 +569,7 @@ that you forgot to install the deluged package or it's not in your PATH.")).run(
elif status == "Offline":
self.start_daemon(port, deluge.configmanager.get_config_dir())
- reactor.callLater(2.0, self.__update_list)
+ reactor.callLater(0.8, self.__update_list)
def on_button_refresh_clicked(self, widget):
self.__update_list()