Drop borrow to window state before calling beginSheetModalForWindow
Co-Authored-By: Keith Simmons <keith@the-simmons.net>
This commit is contained in:
co-authored by
Keith Simmons
parent
b060fb0f67
commit
66544d54f2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user