Merge pull request #7417 from electron/check-sheet-parent-before-beginning
Only begin sheet when no sheet parent
This commit is contained in:
commit
ff6a8fac2a
1 changed files with 3 additions and 2 deletions
|
@ -740,8 +740,9 @@ bool NativeWindowMac::IsFocused() {
|
||||||
|
|
||||||
void NativeWindowMac::Show() {
|
void NativeWindowMac::Show() {
|
||||||
if (is_modal() && parent()) {
|
if (is_modal() && parent()) {
|
||||||
[parent()->GetNativeWindow() beginSheet:window_
|
if ([window_ sheetParent] == nil)
|
||||||
completionHandler:^(NSModalResponse) {}];
|
[parent()->GetNativeWindow() beginSheet:window_
|
||||||
|
completionHandler:^(NSModalResponse) {}];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue