[GtkUI] Fix ETA sorting to match WebUI
The sort for Ascending was putting longest eta first but seems more intuitive that the smallest time to wait should be first. The WebUI in previous commit swapped this behaviour so updating GtkUI.
This commit is contained in:
parent
3b11613cc7
commit
ff309ea4c5
|
@ -77,13 +77,13 @@ def eta_column_sort(model, iter1, iter2, data):
|
|||
if v1 == v2:
|
||||
return 0
|
||||
if v1 == 0:
|
||||
return 1
|
||||
return -1
|
||||
if v2 == 0:
|
||||
return -1
|
||||
if v1 > v2:
|
||||
return 1
|
||||
if v2 > v1:
|
||||
if v1 > v2:
|
||||
return -1
|
||||
if v2 > v1:
|
||||
return 1
|
||||
|
||||
|
||||
def seed_peer_column_sort(model, iter1, iter2, data):
|
||||
|
|
Loading…
Reference in New Issue