mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 16:38:43 +00:00
Fix queue order shuffling on restart
This commit is contained in:
parent
1bfe866638
commit
5f03ea785c
1 changed files with 4 additions and 3 deletions
|
@ -493,8 +493,9 @@ class TorrentManager(component.Component):
|
||||||
for torrent_state in state.torrents:
|
for torrent_state in state.torrents:
|
||||||
for t in ordered_state:
|
for t in ordered_state:
|
||||||
if torrent_state.queue < t.queue:
|
if torrent_state.queue < t.queue:
|
||||||
ordered_state.insert(0, torrent_state)
|
ordered_state.insert(ordered_state.index(t), torrent_state)
|
||||||
break
|
break
|
||||||
|
if torrent_state not in ordered_state:
|
||||||
ordered_state.append(torrent_state)
|
ordered_state.append(torrent_state)
|
||||||
|
|
||||||
for torrent_state in ordered_state:
|
for torrent_state in ordered_state:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue