Don't add the "Enter Full Screen" menu item automatically
authorCheng Zhao <zcbenz@gmail.com>
Thu, 10 Dec 2015 03:27:41 +0000 (11:27 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 10 Dec 2015 03:27:41 +0000 (11:27 +0800)
atom/browser/mac/atom_application_delegate.mm

index a18d2fe..7662162 100644 (file)
@@ -21,6 +21,9 @@
 }
 
 - (void)applicationWillFinishLaunching:(NSNotification*)notify {
+  // Don't add the "Enter Full Screen" menu item automatically.
+  [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSFullScreenMenuItemEverywhere"];
+
   atom::Browser::Get()->WillFinishLaunching();
 }