mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-26 10:05:19 +00:00
Call update() prior to setting the timer
This commit is contained in:
parent
9ac9f13044
commit
f2a38204d7
@ -809,6 +809,9 @@ class DelugeGTK:
|
|||||||
# self.torrent_model.append([0, 1, "Hello, World", 2048, 50.0, "Hi", 1, 2, 1, 2, 2048, 2048, 120, 1.0])
|
# self.torrent_model.append([0, 1, "Hello, World", 2048, 50.0, "Hi", 1, 2, 1, 2, 2048, 2048, 120, 1.0])
|
||||||
for uid in self.manager.get_unique_IDs():
|
for uid in self.manager.get_unique_IDs():
|
||||||
self.torrent_model.append(self.get_list_from_unique_id(uid))
|
self.torrent_model.append(self.get_list_from_unique_id(uid))
|
||||||
|
# Call update now so everything is up-to-date when the window gains focus on startup
|
||||||
|
self.update()
|
||||||
|
|
||||||
gobject.timeout_add(1000, self.update)
|
gobject.timeout_add(1000, self.update)
|
||||||
try:
|
try:
|
||||||
self.is_running = True
|
self.is_running = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user