mirror of
https://github.com/electron/electron.git
synced 2026-01-10 16:08:06 -05:00
Only begin sheet when no sheet parent
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user