From d1da88922f3981b32becac90f62dac3884ff1e10 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Wed, 6 Nov 2024 11:44:28 +0100 Subject: [PATCH] actually, notify on playback restart instead --- src/ui/window.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/window.rs b/src/ui/window.rs index f0ff339..b331d71 100644 --- a/src/ui/window.rs +++ b/src/ui/window.rs @@ -310,6 +310,7 @@ mod imp { Event::PlaybackRestart => { event!(Level::INFO, "playback restart event"); window.imp().buffering_end(); + self.notify("time-pos"); if let Some(queued_seek) = window.imp().queued_seek.take() { // a seek was tried before and failed, try again now @@ -655,9 +656,9 @@ impl Window { Err(err) => { event!(Level::INFO, "queuing seek to {new_position}: {err}"); self.imp().queued_seek.set(Some(new_position)); + self.notify("time-pos"); } } - self.notify("time-pos"); } pub fn playlist_move(&self, from: u32, to: u32) {