Skip to content

Commit

Permalink
Emit suspended on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed May 27, 2024
1 parent 82e8b16 commit 128fb21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platform_impl/macos/app_delegate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 128fb21

Please sign in to comment.