From: Cheng Zhao Date: Wed, 15 May 2013 12:24:51 +0000 (+0800) Subject: Add 'Reload' in application menu. Fixes atom/atom-shell#4. X-Git-Tag: v0.1.0~169 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=06142aa2e83eacb39ac63753f37172874142b0b6;p=electron.git Add 'Reload' in application menu. Fixes atom/atom-shell#4. --- diff --git a/browser/mac/MainMenu.xib b/browser/mac/MainMenu.xib index ec44b01f..7259646b 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 4ac1daa7..66c285b3 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(); }