1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-25 19:52:44 +01:00

remove exit menu item on macos

This commit is contained in:
Mikael Finstad 2022-08-12 11:37:39 +02:00
parent 15cdc2e06d
commit da6710d61c
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

View File

@ -156,13 +156,17 @@ module.exports = (app, mainWindow, newVersion) => {
mainWindow.webContents.send('toggleSettings'); mainWindow.webContents.send('toggleSettings');
}, },
}, },
{ type: 'separator' }, // Due to Apple Review Guidelines, we cannot include an Exit menu item here
{ // Apple has their own Quit from the app menu
label: i18n.t('Exit'), ...(process.platform !== 'darwin' ? [
click() { { type: 'separator' },
app.quit(); {
label: i18n.t('Exit'),
click() {
app.quit();
},
}, },
}, ] : []),
], ],
}, },