Add File menu on Windows

This commit is contained in:
Jonatan Heyman 2023-01-24 17:08:38 +01:00
parent 428a3172ab
commit 751dfa0a73

View File

@ -26,8 +26,18 @@ const template = [
{ type: 'separator' }, { type: 'separator' },
{ role: 'quit' } { role: 'quit' }
] ]
}] : []), }] : [{
// { role: 'fileMenu' } role: 'fileMenu',
submenu: [
{
label: 'Preferences',
click: (menuItem, window, event) => {
window?.webContents.send(OPEN_SETTINGS_EVENT)
},
},
{ role: 'about' },
],
}]),
/*{ /*{
label: 'File', label: 'File',
submenu: [ submenu: [