mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
use 'cycle' command to toggle pause
This commit is contained in:
parent
f1d1301fe6
commit
63dc301ef0
1 changed files with 1 additions and 1 deletions
|
@ -409,7 +409,7 @@ class MpvManager(MPV, SoundOrVideoPlayer):
|
|||
self.command("stop")
|
||||
|
||||
def toggle_pause(self) -> None:
|
||||
self.set_property("pause", not self.get_property("pause"))
|
||||
self.command("cycle", "pause")
|
||||
|
||||
def seek_relative(self, secs: int) -> None:
|
||||
self.command("seek", secs, "relative")
|
||||
|
|
Loading…
Reference in a new issue