Merge pull request #7417 from electron/check-sheet-parent-before-beginning

Only begin sheet when no sheet parent
This commit is contained in:
Kevin Sawicki 2016-09-30 13:08:35 -07:00 committed by GitHub
commit ff6a8fac2a

View file

@ -740,6 +740,7 @@ bool NativeWindowMac::IsFocused() {
void NativeWindowMac::Show() { void NativeWindowMac::Show() {
if (is_modal() && parent()) { if (is_modal() && parent()) {
if ([window_ sheetParent] == nil)
[parent()->GetNativeWindow() beginSheet:window_ [parent()->GetNativeWindow() beginSheet:window_
completionHandler:^(NSModalResponse) {}]; completionHandler:^(NSModalResponse) {}];
return; return;