move window menu items to view

on windows #2409
pull/2465/head
Mikael Finstad 5 months ago
parent 32a5b2380f
commit 250523c3c3
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -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')),

Loading…
Cancel
Save