From f5a9aa95145cb0acf17860b2b61628c5327bbef1 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 7 Mar 2016 23:06:07 -0800 Subject: [PATCH] use platform-dependent menu item name for 'close' --- main/menu.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main/menu.js b/main/menu.js index 3507bcc5..ca0fb572 100644 --- a/main/menu.js +++ b/main/menu.js @@ -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' }