From: Cheng Zhao Date: Thu, 10 Dec 2015 03:27:41 +0000 (+0800) Subject: Don't add the "Enter Full Screen" menu item automatically X-Git-Tag: v0.36.0~10^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=2d940b7df7ca7e842eec94769f451afe88fab542;p=electron.git Don't add the "Enter Full Screen" menu item automatically --- diff --git a/atom/browser/mac/atom_application_delegate.mm b/atom/browser/mac/atom_application_delegate.mm index a18d2fe4..7662162a 100644 --- a/atom/browser/mac/atom_application_delegate.mm +++ b/atom/browser/mac/atom_application_delegate.mm @@ -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(); }