fix: make windowMenu role correct on MacOS (#15930)

This commit is contained in:
Shelley Vohr 2018-12-03 11:52:46 -08:00 committed by GitHub
parent 3ddd917ff4
commit a1a431eb87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 31 deletions

View file

@ -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
]
}
}