remove exit menu item on macos

pull/1286/head
Mikael Finstad 2022-08-12 11:37:39 +02:00
rodzic 15cdc2e06d
commit da6710d61c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 25AB36E3E81CBC26
1 zmienionych plików z 10 dodań i 6 usunięć

Wyświetl plik

@ -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();
},
},
},
] : []),
],
},