mirror of
https://github.com/heyman/heynote.git
synced 2024-11-29 11:24:04 +01:00
Add File menu on Windows
This commit is contained in:
parent
428a3172ab
commit
751dfa0a73
@ -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: [
|
||||||
|
Loading…
Reference in New Issue
Block a user