fix: stop menu minimization if set false (#46279)
This commit is contained in:
parent
274b148554
commit
e383eaa465
2 changed files with 20 additions and 2 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue