mirror of
https://github.com/jwinterm/grim.git
synced 2026-11-25 07:13:54 +01:00
ui: exit confirmation at desktop
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user