fix: stop menu minimization if set false (#46714)
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Michaela Laurencin <mlaurencin@electronjs.org>
This commit is contained in:
parent
07a7ebb714
commit
11c820c537
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