use 'cycle' command to toggle pause

This commit is contained in:
kelciour 2021-06-07 01:54:07 +03:00
parent f1d1301fe6
commit 63dc301ef0

View file

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