mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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")
|
self.command("stop")
|
||||||
|
|
||||||
def toggle_pause(self) -> None:
|
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:
|
def seek_relative(self, secs: int) -> None:
|
||||||
self.command("seek", secs, "relative")
|
self.command("seek", secs, "relative")
|
||||||
|
|
Loading…
Reference in a new issue