refactor: add stop_animation method to SlideRevealer and integrate with destroy

This commit is contained in:
sankalp committed 2026-07-09 22:33:33 +05:45
1 parent 1dd99cf79d
commit 0fbccca46e
1 file changed
+3
+3
View File
@@ -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()