fix: make windowMenu role correct on MacOS (#15930)
This commit is contained in:
parent
3ddd917ff4
commit
a1a431eb87
3 changed files with 15 additions and 31 deletions
|
@ -216,17 +216,23 @@ const roles = {
|
|||
role: 'minimize'
|
||||
},
|
||||
{
|
||||
role: 'close'
|
||||
role: 'zoom'
|
||||
},
|
||||
|
||||
process.platform !== 'darwin' ? {
|
||||
label: 'close'
|
||||
} : null,
|
||||
process.platform === 'darwin' ? {
|
||||
type: 'separator'
|
||||
} : null,
|
||||
|
||||
process.platform === 'darwin' ? {
|
||||
role: 'front'
|
||||
} : null,
|
||||
process.platform === 'darwin' ? {
|
||||
type: 'separator'
|
||||
} : null,
|
||||
process.platform === 'darwin' ? {
|
||||
role: 'window'
|
||||
} : null
|
||||
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue