Fix errors

This commit is contained in:
Sofia 2026-07-28 23:11:54 +03:00
parent 620ed980a2
commit 0685b83555
2 changed files with 8 additions and 6 deletions

View File

@ -177,11 +177,13 @@ impl StandaloneReplayManager {
} }
pub fn fast_forward_to(&mut self, new_time: f64) { pub fn fast_forward_to(&mut self, new_time: f64) {
if let Some(playback) = &mut self.playback { self.run_deferred(move |s| {
if let Some(playback) = &mut s.playback {
playback.bind_mut().current_time = new_time; playback.bind_mut().current_time = new_time;
playback.bind_mut().current_frame_idx = 0; playback.bind_mut().current_frame_idx = 0;
playback.bind_mut().fast_forwarding = true; playback.bind_mut().fast_forwarding = true;
} }
});
} }
} }

View File

@ -63,7 +63,7 @@ impl ReplayHud {
slider.set_min(0.); slider.set_min(0.);
slider.set_max(end_time); slider.set_max(end_time);
if set_value && !self.dragging { if set_value && !self.dragging {
slider.set_value(current_time); slider.set_value_no_signal(current_time);
} }
} }
} }