actually, notify on playback restart instead

This commit is contained in:
Erica Z 2024-11-06 11:44:28 +01:00
parent 3f10dbc102
commit d1da88922f

View file

@ -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) {