Emit suspended on shutdown

This commit is contained in:
Mads Marquart
2024-02-28 02:44:56 +01:00
parent 9027d8f350
commit 89687656d6

View File

@@ -193,6 +193,7 @@ impl ApplicationDelegate {
/// NOTE: that if the `NSApplication` has been launched then that state is preserved,
/// and we won't need to re-launch the app if subsequent EventLoops are run.
pub fn internal_exit(&self) {
self.handle_event(Event::Suspended);
self.handle_event(Event::LoopExiting);
self.set_is_running(false);