Fix to enable "Save changes" popup
This commit is contained in:
1 parent
1c99e9fabc
commit
913d2127d8
5 files changed
+51
-2
No files matched your search
@@ -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),
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user