From da6710d61c61b9d05192dc9678959c45d11a9285 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Fri, 12 Aug 2022 11:37:39 +0200 Subject: [PATCH] remove exit menu item on macos --- public/menu.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/public/menu.js b/public/menu.js index 5e9fb42e..94dec5fd 100644 --- a/public/menu.js +++ b/public/menu.js @@ -156,13 +156,17 @@ module.exports = (app, mainWindow, newVersion) => { mainWindow.webContents.send('toggleSettings'); }, }, - { type: 'separator' }, - { - label: i18n.t('Exit'), - click() { - app.quit(); + // Due to Apple Review Guidelines, we cannot include an Exit menu item here + // Apple has their own Quit from the app menu + ...(process.platform !== 'darwin' ? [ + { type: 'separator' }, + { + label: i18n.t('Exit'), + click() { + app.quit(); + }, }, - }, + ] : []), ], },