ui: exit confirmation at desktop

This commit is contained in:
ardocrat
2023-07-11 23:36:48 +03:00
parent 126574912e
commit 15d57bc968
3 changed files with 121 additions and 87 deletions
+5
View File
@@ -45,4 +45,9 @@ impl eframe::App for PlatformApp<Desktop> {
fn update(&mut self, ctx: &egui::Context, frame: &mut eframe::Frame) {
self.app.ui(ctx, frame, &self.platform);
}
fn on_close_event(&mut self) -> bool {
self.app.exit_requested = true;
self.app.exit_allowed
}
}