Remove (hopefully) dead download code
If the percentage is None, remaining/total should always be None too (as percentage/remaining being None should be triggered by total being None).
This commit is contained in:
parent
d64241bed9
commit
ab30124bd0
@ -352,10 +352,7 @@ class DownloadItem(QObject):
|
||||
return ('{index}: {name} [{speed:>10}|{down}]{errmsg}'.format(
|
||||
index=self.index, name=self.basename, speed=speed,
|
||||
down=down, errmsg=errmsg))
|
||||
if perc is None:
|
||||
perc = '??'
|
||||
else:
|
||||
perc = round(perc)
|
||||
perc = round(perc)
|
||||
if remaining is None:
|
||||
remaining = '?'
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user