mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-12 19:28:42 +00:00
Call update() prior to setting the timer
This commit is contained in:
parent
9ac9f13044
commit
f2a38204d7
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue