mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Add comment
This commit is contained in:
parent
8cac607588
commit
095df2f6f8
1 changed files with 3 additions and 0 deletions
|
@ -335,7 +335,10 @@ class MpvManager(MPV, SoundOrVideoPlayer):
|
||||||
super().__init__(window_id=None, debug=False)
|
super().__init__(window_id=None, debug=False)
|
||||||
|
|
||||||
def on_init(self) -> None:
|
def on_init(self) -> None:
|
||||||
|
# if mpv dies and is restarted, tell Anki the
|
||||||
|
# current file is done
|
||||||
self.on_end_file()
|
self.on_end_file()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.command("keybind", "q", "stop")
|
self.command("keybind", "q", "stop")
|
||||||
self.command("keybind", "Q", "stop")
|
self.command("keybind", "Q", "stop")
|
||||||
|
|
Loading…
Reference in a new issue