Skip to content

Commit

Permalink
Merge pull request #232 from ChinaIceF/refactor
Browse files Browse the repository at this point in the history
hotfix: fix crashes when pressing `SiLongPressButtonRefactor`
  • Loading branch information
ChinaIceF authored Feb 13, 2025
2 parents 3cad856 + 18c37ff commit 06cf2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion siui/components/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ def __init__(self, parent: T_WidgetParent = None) -> None:
def setProgress(self, p: float, ani: bool = True) -> None:
self._progress = max(0.0, min(p, 1.0))
self._updateProgress(ani)
self.progress_ani.update()
self.progress_ani.fromProperty()
self.update()

def reloadStyleData(self) -> None:
Expand Down

0 comments on commit 06cf2ce

Please sign in to comment.