From 2d982cf286d0fa5d72229f27ec9719bde77e7068 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sat, 18 Jul 2026 14:13:44 +0545 Subject: [PATCH] fix(shared): add tick_widget=self to AnimatedScrollable height_animator Without tick_widget the Animator falls back to GLib.timeout_add which fires even when the widget is hidden, wasting CPU on invisible scroll windows (WiFi/BT connection lists). --- src/shared/window/animated_scrollwindow.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/window/animated_scrollwindow.py b/src/shared/window/animated_scrollwindow.py index ac1c8b7..845a193 100644 --- a/src/shared/window/animated_scrollwindow.py +++ b/src/shared/window/animated_scrollwindow.py @@ -23,6 +23,7 @@ class AnimatedScrollable(ScrolledWindow): duration=duration, min_value=min_height, max_value=max_height, + tick_widget=self, ) self.height_animator.connect("notify::value", self.on_animator_change) self.set_overlay_scrolling(True)