diff --git a/crates/tauri-runtime-wry/src/window/macos.rs b/crates/tauri-runtime-wry/src/window/macos.rs index 65b742284d5b..59ca9f9f448b 100644 --- a/crates/tauri-runtime-wry/src/window/macos.rs +++ b/crates/tauri-runtime-wry/src/window/macos.rs @@ -26,7 +26,7 @@ impl super::WindowExt for tao::window::Window { ) }; unsafe { sheet.setAlphaValue(0.5) }; - ns_window.beginSheet_completionHandler(&sheet, None) + unsafe { ns_window.beginSheet_completionHandler(&sheet, None) }; } else if let Some(attached) = unsafe { ns_window.attachedSheet() } { unsafe { ns_window.endSheet(&attached) }; }