mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Replace deprecated "idle" event with "idle-active" property
This commit is contained in:
parent
9aee8085e0
commit
d64c26f20a
1 changed files with 2 additions and 2 deletions
|
@ -359,8 +359,8 @@ class MpvManager(MPV, SoundOrVideoPlayer):
|
|||
def seek_relative(self, secs: int) -> None:
|
||||
self.command("seek", secs, "relative")
|
||||
|
||||
def on_idle(self) -> None:
|
||||
if self._on_done:
|
||||
def on_property_idle_active(self, val) -> None:
|
||||
if val and self._on_done:
|
||||
self._on_done()
|
||||
|
||||
def on_start_file(self) -> None:
|
||||
|
|
Loading…
Reference in a new issue