mirror of
https://git.deluge-torrent.org/deluge
synced 2025-09-18 07:41:55 +00:00
wont display negative time remaining
This commit is contained in:
parent
230f2d151b
commit
1d76bd2a8d
1 changed files with 3 additions and 0 deletions
|
@ -307,6 +307,9 @@ class DelugeGTK:
|
||||||
|
|
||||||
def time(column, cell, model, iter, data):
|
def time(column, cell, model, iter, data):
|
||||||
time = int(model.get_value(iter, data))
|
time = int(model.get_value(iter, data))
|
||||||
|
if time <= 0
|
||||||
|
cell.set_property('text', '-')
|
||||||
|
return
|
||||||
time_str = dcommon.ftime(time)
|
time_str = dcommon.ftime(time)
|
||||||
cell.set_property('text', time_str)
|
cell.set_property('text', time_str)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue