From cfeedbca3c39a92705fda79deb3d125850e885f7 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 19 Apr 2009 21:48:23 +0000 Subject: [PATCH] * morituri/common/task.py: Make sure we also show progress when it's 0%, at the start. --- ChangeLog | 5 +++++ morituri/common/task.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 01bb389..459c414 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-04-19 Thomas Vander Stichele + + * morituri/common/task.py: + Make sure we also show progress when it's 0%, at the start. + 2009-04-19 Thomas Vander Stichele * morituri/image/cue.py: diff --git a/morituri/common/task.py b/morituri/common/task.py index 2bcb38c..fd2ac6d 100644 --- a/morituri/common/task.py +++ b/morituri/common/task.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)