mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 04:54:23 +00:00
Make sure queue order is preserved when restarting daemon.
This commit is contained in:
parent
7d88cb1850
commit
666bb09513
@ -641,7 +641,7 @@ class TorrentManager(component.Component):
|
||||
|
||||
# Reorder the state.torrents list to add torrents in the correct queue
|
||||
# order.
|
||||
state.torrents.sort(key=operator.attrgetter("queue"))
|
||||
state.torrents.sort(key=operator.attrgetter("queue"), reverse=self.config["queue_new_to_top"])
|
||||
|
||||
resume_data = self.load_resume_data_file()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user