mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 12:04:51 +00:00
[Console] Replace set with list
This commit is contained in:
parent
4afd2513fa
commit
e24e5916e0
1 changed files with 3 additions and 3 deletions
|
@ -244,11 +244,11 @@ class TorrentDetail(BaseMode, component.Component):
|
|||
for f in fs:
|
||||
if f[3]: # dir, so fill in children and compute our prio
|
||||
self.__fill_prio(f[3])
|
||||
s = set([e[6] for e in f[3]]) # pull out all child prios and turn into a set
|
||||
if len(s) > 1:
|
||||
child_prios = [e[6] for e in f[3]]
|
||||
if len(child_prios) > 1:
|
||||
f[6] = -2 # mixed
|
||||
else:
|
||||
f[6] = s.pop()
|
||||
f[6] = child_prios.pop(0)
|
||||
|
||||
def __update_columns(self):
|
||||
self.column_widths = [-1, 15, 15, 20]
|
||||
|
|
Loading…
Add table
Reference in a new issue