mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
Update the list 2 seconds after starting the daemon
This commit is contained in:
parent
01fbda7c9e
commit
464073e596
1 changed files with 2 additions and 1 deletions
|
@ -27,6 +27,7 @@ import pkg_resources
|
||||||
import urlparse
|
import urlparse
|
||||||
import time
|
import time
|
||||||
import hashlib
|
import hashlib
|
||||||
|
from twisted.internet import reactor
|
||||||
|
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
import deluge.common
|
import deluge.common
|
||||||
|
@ -455,7 +456,7 @@ class ConnectionManager(component.Component):
|
||||||
|
|
||||||
elif status == "Offline":
|
elif status == "Offline":
|
||||||
client.start_daemon(port, deluge.configmanager.get_config_dir())
|
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):
|
def on_button_refresh_clicked(self, widget):
|
||||||
self.__update_list()
|
self.__update_list()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue