From 8b720c120d408891fd1b34c42582c0c0c8b6d285 Mon Sep 17 00:00:00 2001 From: Zhuo Lu Date: Sat, 18 Nov 2017 22:02:39 -0800 Subject: [PATCH] Hide "Open Recent" in xib --- atom/browser/ui/cocoa/atom_menu_controller.mm | 1 + atom/common/resources/mac/MainMenu.xib | 1 + 2 files changed, 2 insertions(+) diff --git a/atom/browser/ui/cocoa/atom_menu_controller.mm b/atom/browser/ui/cocoa/atom_menu_controller.mm index 23385a6bd160..0d0d7282d524 100644 --- a/atom/browser/ui/cocoa/atom_menu_controller.mm +++ b/atom/browser/ui/cocoa/atom_menu_controller.mm @@ -94,6 +94,7 @@ Role kRolesMap[] = { if (!openRecentMenuItem_) { openRecentMenuItem_ = [[[[NSApp mainMenu] itemWithTitle:@"Electron"] submenu] itemWithTitle:@"Open Recent"]; + [openRecentMenuItem_ setHidden:NO]; [openRecentMenuItem_ retain]; } diff --git a/atom/common/resources/mac/MainMenu.xib b/atom/common/resources/mac/MainMenu.xib index 27e4e9e3aaa1..e911333122e5 100644 --- a/atom/common/resources/mac/MainMenu.xib +++ b/atom/common/resources/mac/MainMenu.xib @@ -71,6 +71,7 @@ 1048576 2147483647 + YES submenuAction: