Fix to enable "Save changes" popup

This commit is contained in:
AiSatan authored and GitHub committed 2026-03-09 14:10:30 +01:00
1 parent 1c99e9fabc
commit 913d2127d8
5 files changed
+51 -2

No files matched your search

+7
View File
@@ -65,4 +65,11 @@ impl AppMode {
AppMode::PoB(mode) => mode.handle_event(state, event),
}
}
pub fn can_exit(&mut self, state: &mut AppState) -> bool {
match self {
AppMode::Install(_) => true,
AppMode::PoB(mode) => mode.can_exit(state),
}
}
}