Add File > Exit menu on Windows

This commit is contained in:
Kevin Sawicki 2016-06-20 17:08:45 -07:00
parent 7a6436014e
commit 11ba7eaa91

View file

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