mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-07-02 12:57:26 +08:00
feat(cli): allow multiple reverses (#488)
* Permit multiple reverses * chore(docs): add changelog entry --------- Co-authored-by: Jérome Eertmans <jeertmans@icloud.com>
This commit is contained in:

committed by
GitHub

parent
3dbe12b480
commit
988011ff7d
@ -17,6 +17,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
HTML presentations.
|
||||
[#440](https://github.com/jeertmans/manim-slides/pull/440)
|
||||
|
||||
(unreleased-changed)=
|
||||
### Changed
|
||||
|
||||
- Allow multiple slide reverses by going backward [@PeculiarProgrammer](https://github.com/PeculiarProgrammer).
|
||||
[#488](https://github.com/jeertmans/manim-slides/pull/488)
|
||||
|
||||
(v5.1.9)=
|
||||
## [v5.1.9](https://github.com/jeertmans/manim-slides/compare/v5.1.8...v5.1.9)
|
||||
|
||||
|
@ -515,6 +515,9 @@ class Player(QMainWindow): # type: ignore[misc]
|
||||
|
||||
@Slot()
|
||||
def reverse(self) -> None:
|
||||
if self.playing_reversed_slide and self.current_slide_index >= 1:
|
||||
self.current_slide_index -= 1
|
||||
|
||||
self.load_reversed_slide()
|
||||
self.preview_next_slide()
|
||||
|
||||
|
Reference in New Issue
Block a user