Fix loops

This commit is contained in:
Linus Heck
2021-06-11 08:42:56 +02:00
parent 41de205675
commit c9390f0e59

View File

@ -99,6 +99,8 @@ class Presentation:
state = State.WAIT
elif self.current_slide["type"] == "loop":
self.current_animation = self.current_slide["start_animation"]
state = State.PLAYING
self.rewind()
elif self.current_slide["type"] == "last":
state = State.WAIT
elif self.current_slide["type"] == "last" and self.current_slide["end_animation"] == self.current_animation: