Skip to content

Commit

Permalink
feat(widget/disk): enable animation on label toggle for enhanced user…
Browse files Browse the repository at this point in the history
… experience
  • Loading branch information
amnweb committed Jan 28, 2025
1 parent 70b598a commit 36eaa1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/widgets/yasb/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def __init__(


def _toggle_label(self):
if self._animation['enabled']:
AnimationManager.animate(self, self._animation['type'], self._animation['duration'])
self._show_alt_label = not self._show_alt_label
for widget in self._widgets:
widget.setVisible(not self._show_alt_label)
Expand Down

0 comments on commit 36eaa1a

Please sign in to comment.