use platform-dependent menu item name for 'close'

This commit is contained in:
Feross Aboukhadijeh
2016-03-07 23:06:07 -08:00
parent 81476a3954
commit f5a9aa9514

View File

@@ -113,7 +113,10 @@ function getMenuTemplate () {
type: 'separator'
},
{
label: 'Close Window',
label: (function () {
if (process.platform === 'darwin') return 'Close Window'
else return 'Close'
})(),
accelerator: 'CmdOrCtrl+W',
role: 'close'
}