review pass the last
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user