mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Don't send commands to renderer for reload and toggleDevTools menu item.
The specs window doesn't respond to window commands, so it would make the menu items do not work.
This commit is contained in:
@@ -97,8 +97,8 @@ class AtomApplication
|
||||
viewMenu =
|
||||
label: 'View'
|
||||
submenu:[
|
||||
{ label: 'Reload', accelerator: 'Command+R', click: => @sendCommand 'window:reload' }
|
||||
{ label: 'Toggle DevTools', accelerator: 'Alt+Command+I', click: => @sendCommand 'toggle-dev-tools' }
|
||||
{ label: 'Reload', accelerator: 'Command+R', click: => BrowserWindow.getFocusedWindow()?.reloadIgnoringCache() }
|
||||
{ label: 'Toggle DevTools', accelerator: 'Alt+Command+I', click: => BrowserWindow.getFocusedWindow()?.toggleDevTools() }
|
||||
]
|
||||
|
||||
windowMenu =
|
||||
|
||||
Reference in New Issue
Block a user