check if update is necessary first
This commit is contained in:
parent
f0ba87c28e
commit
0c4f08afdf
|
@ -799,8 +799,9 @@ class DelugeGTK:
|
||||||
iter = self.file_store.get_iter_first()
|
iter = self.file_store.get_iter_first()
|
||||||
for file in new_file_info:
|
for file in new_file_info:
|
||||||
if iter != None:
|
if iter != None:
|
||||||
self.file_store.set_value(iter, 4, round(file['progress'],2))
|
if round(self.file_store.get_value(iter, 4),2) != round(file['progress'],2):
|
||||||
iter = self.file_store.iter_next(iter)
|
self.file_store.set_value(iter, 4, round(file['progress'],2))
|
||||||
|
iter = self.file_store.iter_next(iter)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue