From e46c6260ee37e60c5ca8a31417c9934fa37b0a6e Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sat, 7 Sep 2024 10:16:59 -0700 Subject: [PATCH] fix: set progress to zero when indeterminate --- src/TaskListItem.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/TaskListItem.py b/src/TaskListItem.py index ff19f2f..28f567b 100644 --- a/src/TaskListItem.py +++ b/src/TaskListItem.py @@ -160,6 +160,5 @@ def update_progress(self, value=None) -> None: self.progress_value = value self.progress_bar.setValue(self.progress_value) else: - # Increment progress bar for indeterminate progress - self.progress_value = (self.progress_value + 1) % 101 - self.progress_bar.setValue(self.progress_value) + # Set progress bar to zero for indeterminate progress + self.progress_bar.setValue(0)