work around notification delivery

This commit is contained in:
Erica Z 2024-11-13 23:00:48 +01:00
parent da2bf2d1a0
commit 67cfcb7696

View file

@ -654,6 +654,10 @@ mod imp {
} }
self.state.set(State::FileLoading); self.state.set(State::FileLoading);
// force update the playlist-pos, in case the observed property comes later
self.playlist_pos
.set(self.mpv.get_property("playlist-pos").unwrap());
// make sure this is reported as 0 // make sure this is reported as 0
self.obj().notify("time-pos"); self.obj().notify("time-pos");