Skip to content

Commit

Permalink
2.0.0 - Material Design 3
Browse files Browse the repository at this point in the history
Add method fixes a bug: the indicator values are not set to 0.
  • Loading branch information
HeaTTheatR committed Jan 4, 2024
1 parent 65b64b9 commit 756bffd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kivymd/uix/progressindicator/progressindicator.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,11 @@ def catching_up(self, *args) -> None:
self.reversed = True
self.catching_anim.start(self)

# FIXME: This method fixes a bug: the indicator values are not set to 0.
def on_value(self, instance, value):
if not value:
self.value = 0.01

def _create_determinate_animations(self):
self.running_anim = Animation(
value=100,
Expand Down

0 comments on commit 756bffd

Please sign in to comment.