review pass the last

This commit is contained in:
Will Temple
2026-05-16 16:18:08 -04:00
parent d9ac6bfeb8
commit 23d9f02e3a
3 changed files with 21 additions and 7 deletions

View File

@@ -460,6 +460,10 @@ pub fn run_macos_app_event_loop() {
unsafe {
let _: () = objc2::msg_send![app, run];
}
set_command_wake_hook(None);
if let Ok(mut slot) = run_loop_wake_handle().lock() {
*slot = None;
}
}
fn install_platform_run_loop_source() -> Option<RunLoopSourceRegistration> {
@@ -1174,9 +1178,6 @@ fn drain_platform_commands(state: &Rc<RefCell<MacosState>>) -> bool {
let _: () = objc2::msg_send![app, stop: std::ptr::null_mut::<AnyObject>()];
}
set_command_wake_hook(None);
if let Ok(mut slot) = run_loop_wake_handle().lock() {
*slot = None;
}
break;
}
}