Drop borrow to window state before calling beginSheetModalForWindow

Co-Authored-By: Keith Simmons <keith@the-simmons.net>
This commit is contained in:
Nathan Sobo 2022-04-04 16:18:28 -06:00
parent b060fb0f67
commit 66544d54f2

View file

@ -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