From 67cfcb76964618ae2a77fe6c85b503f70704dd24 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Wed, 13 Nov 2024 23:00:48 +0100 Subject: [PATCH] work around notification delivery --- src/ui/window.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/window.rs b/src/ui/window.rs index 27e94e8..15765cb 100644 --- a/src/ui/window.rs +++ b/src/ui/window.rs @@ -654,6 +654,10 @@ mod imp { } 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 self.obj().notify("time-pos");