mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-08 11:31:25 +00:00
12 lines
365 B
Rust
12 lines
365 B
Rust
use super::{Dialog, EffectcraftApp};
|
|
|
|
impl EffectcraftApp {
|
|
/// Show the crash-recovery dialog for a previous run that didn't exit cleanly.
|
|
pub fn offer_recovery(&mut self, r: effectcraft_engine::autosave::Recovery) {
|
|
if r.autosave.is_some() {
|
|
self.recovery = Some(r);
|
|
self.dialog = Some(Dialog::Recovery);
|
|
}
|
|
}
|
|
}
|