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:
PeculiarProgrammer
2024-11-12 06:09:35 -05:00
committed by GitHub
parent 3dbe12b480
commit 988011ff7d
2 changed files with 9 additions and 0 deletions

View File

@ -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)

View File

@ -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()