Fix progress display

This commit is contained in:
angelblue05 2018-03-23 03:08:54 -05:00
parent 83e5473e8b
commit db7de1e333
2 changed files with 10 additions and 7 deletions

View file

@ -119,7 +119,6 @@ class Items(object):
process = self._get_func(item_type, action)
self.total = total or len(items)
self.count = 0
for item in items:
@ -147,7 +146,6 @@ class Items(object):
# Generator for newly added content
if update:
self.total = total or len(items)
self.count = 0
for item in items:
@ -156,8 +154,8 @@ class Items(object):
self.title = item.get('Name', "unknown")
yield item
self.update_pdialog()
yield item
if update:
self.count += 1