From 0fbccca46eadfe6ae441ee6c4cc14c1da236dc9f Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 9 Jul 2026 22:33:33 +0545 Subject: [PATCH] refactor: add stop_animation method to SlideRevealer and integrate with destroy --- src/shared/widgets/customrevealer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shared/widgets/customrevealer.py b/src/shared/widgets/customrevealer.py index 8d06d1b..07d0174 100644 --- a/src/shared/widgets/customrevealer.py +++ b/src/shared/widgets/customrevealer.py @@ -156,6 +156,9 @@ class SlideRevealer(Gtk.Overlay): def set_slide_direction(self, direction): self.direction = direction + def stop_animation(self): + self.animator.stop() + def destroy(self): self.stop_animation() super().destroy()