* morituri/common/task.py:

Make sure we also show progress when it's 0%, at the start.
This commit is contained in:
Thomas Vander Stichele
2009-04-19 21:48:23 +00:00
parent 68b6db9e10
commit cfeedbca3c
2 changed files with 6 additions and 1 deletions

View File

@@ -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:

View File

@@ -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)