diff --git a/croppa/main.py b/croppa/main.py index cda4c25..2fb1698 100644 --- a/croppa/main.py +++ b/croppa/main.py @@ -481,11 +481,13 @@ class VideoEditor: def next_video(self): """Switch to the next video""" + self.save_state() # Save current video state before switching next_index = (self.current_video_index + 1) % len(self.video_files) self.switch_to_video(next_index) def previous_video(self): """Switch to the previous video""" + self.save_state() # Save current video state before switching prev_index = (self.current_video_index - 1) % len(self.video_files) self.switch_to_video(prev_index)