mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-15 12:56:43 +00:00
wont display negative time remaining
This commit is contained in:
parent
230f2d151b
commit
1d76bd2a8d
@ -307,6 +307,9 @@ class DelugeGTK:
|
||||
|
||||
def time(column, cell, model, iter, data):
|
||||
time = int(model.get_value(iter, data))
|
||||
if time <= 0
|
||||
cell.set_property('text', '-')
|
||||
return
|
||||
time_str = dcommon.ftime(time)
|
||||
cell.set_property('text', time_str)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user