fix: stop menu minimization if set false (#46279)

This commit is contained in:
Michaela Laurencin 2025-04-22 04:58:30 -04:00 committed by GitHub
parent 274b148554
commit e383eaa465
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 2 deletions

View file

@ -78,7 +78,9 @@ export const roleList: Record<RoleId, Role> = {
minimize: {
label: 'Minimize',
accelerator: 'CommandOrControl+M',
windowMethod: w => w.minimize()
windowMethod: w => {
if (w.minimizable) w.minimize();
}
},
paste: {
label: 'Paste',