File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,12 @@ def reset(self):
7373 self .current_slide_i = 0
7474 self .slides [- 1 ]["terminated" ] = False
7575
76+ def start_last_slide (self ):
77+ self .current_animation = self .slides [- 1 ]["start_animation" ]
78+ self .load_this_cap (self .current_animation )
79+ self .current_slide_i = len (self .slides [- 1 ])
80+ self .slides [- 1 ]["terminated" ] = False
81+
7682 def next (self ):
7783 if self .current_slide ["type" ] == "last" :
7884 self .current_slide ["terminated" ] = True
@@ -312,7 +318,7 @@ def handle_key(self):
312318 elif self .config .BACK .match (key ):
313319 if self .current_presentation .current_slide_i == 0 :
314320 self .current_presentation_i = max (0 , self .current_presentation_i - 1 )
315- self .current_presentation .reset ()
321+ self .current_presentation .start_last_slide ()
316322 self .state = State .PLAYING
317323 else :
318324 self .current_presentation .prev ()
You can’t perform that action at this time.
0 commit comments