fix: restore original BrowserWindow.show() behavior (#42300)

This commit is contained in:
Samuel Attard 2024-05-28 23:31:11 -07:00 committed by GitHub
parent 09fb892c6e
commit 22ba8b6f01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -457,11 +457,7 @@ void NativeWindowMac::Show() {
// Panels receive key focus when shown but should not activate the app.
if (!IsPanel()) {
if (@available(macOS 14.0, *)) {
[[NSApplication sharedApplication] activate];
} else {
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
}
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
}
[window_ makeKeyAndOrderFront:nil];
}