Browse Source

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

Samuel Attard 10 months ago
parent
commit
22ba8b6f01
1 changed files with 1 additions and 5 deletions
  1. 1 5
      shell/browser/native_window_mac.mm

+ 1 - 5
shell/browser/native_window_mac.mm

@@ -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];
 }