Skip to content

The swiss army knife of lossless video/audio editing

move window menu items to view

Mikael Finstad250523c3c3a1
diff --git a/src/main/menu.ts b/src/main/menu.ts
index 34d50617..f61f4cb8 100644
--- a/src/main/menu.ts
+++ b/src/main/menu.ts
@@ -362,6 +362,10 @@ export default ({ app, mainWindow, newVersion, isStoreBuild }: {
{
label: esc(t('View')),
submenu: [
+ ...(process.platform === 'win32' ? [
+ { role: 'minimize' as const, label: esc(t('Minimize')) },
+ { role: 'zoom' as const, label: esc(t('Maximize')) },
+ ] : []),
{ role: 'togglefullscreen', label: esc(t('Toggle Full Screen')) },
{ role: 'resetZoom', label: esc(t('Reset font size')) },
{ role: 'zoomIn', label: esc(t('Increase font size')) },
@@ -370,17 +374,9 @@ 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')) },
- ] : [
- {
- label: esc(t('Window')),
- submenu: [
- { role: 'minimize' as const, label: esc(t('Minimize')) },
- { role: 'zoom' as const, label: esc(t('Zoom')) },
- ],
- },
- ]),
+ // Also, Windows apps don't normally have a Window menu.
+ // https://github.com/mifi/lossless-cut/discussions/2409
+ ...(process.platform === 'darwin' ? [{ role: 'windowMenu' as const, label: esc(t('Window')) }] : []),
{
label: esc(t('Tools')),