From 06142aa2e83eacb39ac63753f37172874142b0b6 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 15 May 2013 20:24:51 +0800 Subject: [PATCH] Add 'Reload' in application menu. Fixes atom/atom-shell#4. --- browser/mac/MainMenu.xib | 28 ++++++++++++++++++++++++++-- browser/native_window_mac.mm | 4 ++++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/browser/mac/MainMenu.xib b/browser/mac/MainMenu.xib index ec44b01fccf9..7259646b7486 100644 --- a/browser/mac/MainMenu.xib +++ b/browser/mac/MainMenu.xib @@ -1193,6 +1193,15 @@ + + Reload + r + 1048576 + 2147483647 + + + + Show Developer Tools i @@ -1904,9 +1913,17 @@ showDevTools: + + + 805 + + + + reload: + - 801 + 806 @@ -2245,6 +2262,7 @@ + @@ -2947,6 +2965,11 @@ + + 804 + + + @@ -3098,6 +3121,7 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -3107,7 +3131,7 @@ - 803 + 806 diff --git a/browser/native_window_mac.mm b/browser/native_window_mac.mm index 4ac1daa71149..66c285b35970 100644 --- a/browser/native_window_mac.mm +++ b/browser/native_window_mac.mm @@ -65,6 +65,10 @@ shell_ = shell; } +- (IBAction)reload:(id)sender { + shell_->GetWebContents()->GetController().ReloadIgnoringCache(false); +} + - (IBAction)showDevTools:(id)sender { shell_->OpenDevTools(); }