Properly restore queue order on restart.
This commit is contained in:
parent
aea7be5aa5
commit
3edd3280ae
|
@ -724,8 +724,8 @@ class Manager:
|
|||
def get_num_torrents(self):
|
||||
return deluge_core.get_num_torrents()
|
||||
|
||||
def get_unique_IDs(self):
|
||||
return self.unique_IDs.keys()
|
||||
def get_queue(self):
|
||||
return self.state.queue
|
||||
|
||||
def update_tracker(self, unique_ID):
|
||||
deluge_core.reannounce(unique_ID)
|
||||
|
|
|
@ -821,8 +821,8 @@ class DelugeGTK:
|
|||
print "Showing window"
|
||||
self.window.show()
|
||||
|
||||
## add torrents in manager to interface
|
||||
for unique_id in self.manager.get_unique_IDs():
|
||||
## add torrents in manager's queue to interface
|
||||
for unique_id in self.manager.get_queue():
|
||||
self.torrent_model_append(unique_id)
|
||||
|
||||
for torrent_file in cmd_line_torrents:
|
||||
|
|
Loading…
Reference in New Issue