From 36eaa1a7b8ec572f53f92f2f14e9b86156868410 Mon Sep 17 00:00:00 2001 From: amnweb <16545063+forumwt@users.noreply.github.com> Date: Tue, 28 Jan 2025 13:30:35 +0100 Subject: [PATCH] feat(widget/disk): enable animation on label toggle for enhanced user experience --- src/core/widgets/yasb/disk.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/widgets/yasb/disk.py b/src/core/widgets/yasb/disk.py index 2d19f4e..fbedb03 100644 --- a/src/core/widgets/yasb/disk.py +++ b/src/core/widgets/yasb/disk.py @@ -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)