Only begin sheet when no sheet parent
This commit is contained in:
parent
fb41474555
commit
1807458c66
1 changed files with 3 additions and 2 deletions
|
@ -740,8 +740,9 @@ bool NativeWindowMac::IsFocused() {
|
|||
|
||||
void NativeWindowMac::Show() {
|
||||
if (is_modal() && parent()) {
|
||||
[parent()->GetNativeWindow() beginSheet:window_
|
||||
completionHandler:^(NSModalResponse) {}];
|
||||
if ([window_ sheetParent] == nil)
|
||||
[parent()->GetNativeWindow() beginSheet:window_
|
||||
completionHandler:^(NSModalResponse) {}];
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue