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:
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)
|
||||
|
||||
Reference in new issue
Block a user