Add File > Exit menu on Windows
This commit is contained in:
parent
7a6436014e
commit
11ba7eaa91
1 changed files with 12 additions and 0 deletions
|
@ -243,6 +243,18 @@ app.once('ready', () => {
|
|||
]
|
||||
}
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
template.unshift({
|
||||
label: 'File',
|
||||
submenu: [
|
||||
{
|
||||
label: 'Exit',
|
||||
role: 'quit'
|
||||
}
|
||||
]
|
||||
})
|
||||
}
|
||||
|
||||
const menu = Menu.buildFromTemplate(template)
|
||||
Menu.setApplicationMenu(menu)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue