From 0f80906e2d31f601869df41715c0a5b210d0a09d Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Sun, 27 Aug 2023 16:39:25 +0200 Subject: [PATCH] Fix macOS deminiaturize --- CHANGELOG.md | 1 + src/platform_impl/macos/appkit/window.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6f7dec6dec..c2b7f29af86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ And please only add new entries to the top of this list, right below the `# Unre - On Web, `ControlFlow::Poll` and `ControlFlow::WaitUntil` are now using the Prioritized Task Scheduling API. `setTimeout()` with a trick to circumvent throttling to 4ms is used as a fallback. - On Web, never return a `MonitorHandle`. - **Breaking:** Move `Event::RedrawRequested` to `WindowEvent::RedrawRequested`. +- On macOS, fix crash in `window.set_minimized(false)`. # 0.29.1-beta diff --git a/src/platform_impl/macos/appkit/window.rs b/src/platform_impl/macos/appkit/window.rs index 395e2e72afd..4a0a99c3fdd 100644 --- a/src/platform_impl/macos/appkit/window.rs +++ b/src/platform_impl/macos/appkit/window.rs @@ -124,7 +124,7 @@ extern_methods!( #[method(miniaturize:)] pub(crate) fn miniaturize(&self, sender: Option<&AnyObject>); - #[method(sender:)] + #[method(deminiaturize:)] pub(crate) fn deminiaturize(&self, sender: Option<&AnyObject>); #[method(toggleFullScreen:)]