* morituri/common/task.py:
Make sure we also show progress when it's 0%, at the start.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2009-04-19 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* morituri/common/task.py:
|
||||
Make sure we also show progress when it's 0%, at the start.
|
||||
|
||||
2009-04-19 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* morituri/image/cue.py:
|
||||
|
||||
@@ -76,7 +76,7 @@ class Task(object):
|
||||
Notify about progress changes bigger than the increment.
|
||||
Called by subclass implementations as the task progresses.
|
||||
"""
|
||||
if value - self.progress > self.increment or value >= 1.0:
|
||||
if value - self.progress > self.increment or value >= 1.0 or value == 0.0:
|
||||
self.progress = value
|
||||
self._notifyListeners('progressed', value)
|
||||
self.debug('notifying progress', value)
|
||||
|
||||
Reference in New Issue
Block a user