add zoom menu item #2409

pull/2465/head
Mikael Finstad 6 months ago
parent 250506b087
commit 2505067207
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -364,13 +364,17 @@ export default ({ app, mainWindow, newVersion, isStoreBuild }: {
}, },
// On Windows the windowMenu has a close Ctrl+W which clashes with File->Close shortcut // On Windows the windowMenu has a close Ctrl+W which clashes with File->Close shortcut
...(process.platform === 'darwin' ...(process.platform === 'darwin' ? [
? [{ role: 'windowMenu' as const, label: esc(t('Window')) }] { role: 'windowMenu' as const, label: esc(t('Window')) },
: [{ ] : [
{
label: esc(t('Window')), label: esc(t('Window')),
submenu: [{ role: 'minimize' as const, label: esc(t('Minimize')) }], submenu: [
}] { role: 'minimize' as const, label: esc(t('Minimize')) },
), { role: 'zoom' as const, label: esc(t('Zoom')) },
],
},
]),
{ {
label: esc(t('Tools')), label: esc(t('Tools')),

Loading…
Cancel
Save