diff --git a/atom/browser/mac/atom_application_delegate.mm b/atom/browser/mac/atom_application_delegate.mm index 4c6a938fba59..9e245f99078d 100644 --- a/atom/browser/mac/atom_application_delegate.mm +++ b/atom/browser/mac/atom_application_delegate.mm @@ -10,6 +10,10 @@ #include "base/strings/sys_string_conversions.h" #include "base/values.h" +@interface NSWindow (SierraSDK) +@property(class) BOOL allowsAutomaticWindowTabbing; +@end + @implementation AtomApplicationDelegate - (void)setApplicationDockMenu:(atom::AtomMenuModel*)model { @@ -21,6 +25,10 @@ // Don't add the "Enter Full Screen" menu item automatically. [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSFullScreenMenuItemEverywhere"]; + // Don't add the "Show Tab Bar" menu item. + if ([NSWindow respondsToSelector:@selector(allowsAutomaticWindowTabbing)]) + NSWindow.allowsAutomaticWindowTabbing = NO; + atom::Browser::Get()->WillFinishLaunching(); }