From 66544d54f2974663b1b443c0f3ba1f5b3586b0e0 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Mon, 4 Apr 2022 16:18:28 -0600 Subject: [PATCH] Drop borrow to window state before calling beginSheetModalForWindow Co-Authored-By: Keith Simmons --- crates/gpui/src/platform/mac/window.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/gpui/src/platform/mac/window.rs b/crates/gpui/src/platform/mac/window.rs index 5281009155..f6798e15af 100644 --- a/crates/gpui/src/platform/mac/window.rs +++ b/crates/gpui/src/platform/mac/window.rs @@ -361,9 +361,10 @@ impl platform::Window for Window { } }); let block = block.copy(); + let native_window = self.0.borrow().native_window; let _: () = msg_send![ alert, - beginSheetModalForWindow: self.0.borrow().native_window + beginSheetModalForWindow: native_window completionHandler: block ]; done_rx