refactor: add stop_animation method to SlideRevealer and integrate with destroy
This commit is contained in:
1 file changed
+3
@@ -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()
|
||||
Reference in new issue
Block a user