Fix error

This commit is contained in:
Sofia 2026-07-26 22:01:18 +03:00
parent 460b362d5c
commit 6cd8515449

View File

@ -186,9 +186,11 @@ impl MainMenu {
}
pub fn on_open_replay(&mut self, path: GString) {
StandaloneReplayManager::singleton()
.bind_mut()
.open_replay(&path);
self.run_deferred(move |_| {
StandaloneReplayManager::singleton()
.bind_mut()
.open_replay(&path);
});
}
#[func]