mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 13:31:29 +11:00
macOS: fixes app termination (#1234)
* fixes app termination * applies fmt * fmt all * updates changelog * keeps formating consistent * fixes misstype
This commit is contained in:
parent
429bbfade0
commit
6608a0241d
|
@ -1,5 +1,7 @@
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- On macOS, fix application termination on `ControlFlow::Exit`
|
||||||
|
|
||||||
# 0.20.0 Alpha 4 (2019-10-18)
|
# 0.20.0 Alpha 4 (2019-10-18)
|
||||||
|
|
||||||
- Add web support via the 'stdweb' or 'web-sys' features
|
- Add web support via the 'stdweb' or 'web-sys' features
|
||||||
|
|
|
@ -275,7 +275,7 @@ impl AppState {
|
||||||
HANDLER.set_in_callback(false);
|
HANDLER.set_in_callback(false);
|
||||||
}
|
}
|
||||||
if HANDLER.should_exit() {
|
if HANDLER.should_exit() {
|
||||||
let _: () = unsafe { msg_send![NSApp(), stop: nil] };
|
let _: () = unsafe { msg_send![NSApp(), terminate: nil] };
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
HANDLER.update_start_time();
|
HANDLER.update_start_time();
|
||||||
|
|
Loading…
Reference in a new issue