mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-14 21:44:28 +00:00
[GTKUI] Don't display percentage for Error'd torrents
This commit is contained in:
parent
0a74812eeb
commit
69a1f5f210
@ -157,7 +157,7 @@ def cell_data_progress(column, cell, model, row, data):
|
|||||||
cell.set_property("value", value)
|
cell.set_property("value", value)
|
||||||
|
|
||||||
textstr = _t(state_str)
|
textstr = _t(state_str)
|
||||||
if state_str != "Seeding" and value < 100:
|
if state_str not in ("Error", "Seeding") and value < 100:
|
||||||
textstr = "%s %.2f%%" % (textstr, value)
|
textstr = "%s %.2f%%" % (textstr, value)
|
||||||
if cell.get_property("text") != textstr:
|
if cell.get_property("text") != textstr:
|
||||||
cell.set_property("text", textstr)
|
cell.set_property("text", textstr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user