Call update() prior to setting the timer

This commit is contained in:
Andrew Resch 2007-06-27 20:02:17 +00:00
parent 9ac9f13044
commit f2a38204d7
1 changed files with 3 additions and 0 deletions

View File

@ -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])
for uid in self.manager.get_unique_IDs():
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)
try:
self.is_running = True