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).
This commit is contained in:
sankalp committed 2026-07-18 14:13:44 +05:45
1 parent c00236fc69
commit 2d982cf286
1 file changed
+1
@@ -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)