Update the list 2 seconds after starting the daemon

This commit is contained in:
Andrew Resch 2009-01-28 01:36:46 +00:00
parent 01fbda7c9e
commit 464073e596

View File

@ -27,6 +27,7 @@ import pkg_resources
import urlparse
import time
import hashlib
from twisted.internet import reactor
import deluge.component as component
import deluge.common
@ -455,7 +456,7 @@ class ConnectionManager(component.Component):
elif status == "Offline":
client.start_daemon(port, deluge.configmanager.get_config_dir())
self.__update_list()
reactor.callLater(2.0, self.__update_list)
def on_button_refresh_clicked(self, widget):
self.__update_list()