From 25050672071435677f11c49fdd0847a822e4734e Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Tue, 6 May 2025 18:20:56 +0200 Subject: [PATCH] add zoom menu item #2409 --- src/main/menu.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/main/menu.ts b/src/main/menu.ts index 776488f0..3fb1ae68 100644 --- a/src/main/menu.ts +++ b/src/main/menu.ts @@ -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 - ...(process.platform === 'darwin' - ? [{ role: 'windowMenu' as const, label: esc(t('Window')) }] - : [{ + ...(process.platform === 'darwin' ? [ + { role: 'windowMenu' as const, 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')),