Drop borrow to window state before calling beginSheetModalForWindow
Co-Authored-By: Keith Simmons <keith@the-simmons.net>
This commit is contained in:
parent
b060fb0f67
commit
66544d54f2
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue