mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +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:
|
for f in fs:
|
||||||
if f[3]: # dir, so fill in children and compute our prio
|
if f[3]: # dir, so fill in children and compute our prio
|
||||||
self.__fill_prio(f[3])
|
self.__fill_prio(f[3])
|
||||||
s = set([e[6] for e in f[3]]) # pull out all child prios and turn into a set
|
child_prios = [e[6] for e in f[3]]
|
||||||
if len(s) > 1:
|
if len(child_prios) > 1:
|
||||||
f[6] = -2 # mixed
|
f[6] = -2 # mixed
|
||||||
else:
|
else:
|
||||||
f[6] = s.pop()
|
f[6] = child_prios.pop(0)
|
||||||
|
|
||||||
def __update_columns(self):
|
def __update_columns(self):
|
||||||
self.column_widths = [-1, 15, 15, 20]
|
self.column_widths = [-1, 15, 15, 20]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue