Skip to content

Commit

Permalink
fix: set progress to zero when indeterminate
Browse files Browse the repository at this point in the history
  • Loading branch information
leafspark committed Sep 7, 2024
1 parent 454fb19 commit e46c626
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/TaskListItem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit e46c626

Please sign in to comment.