custom-electron-titlebar
custom-electron-titlebar copied to clipboard
Problem that two menus are not displayed.
Describe the bug The menu is not displayed unless three or more are defined(not displayed if one or two).
To Reproduce
- Edit exampleMenuTemplate in example/main.js and make it two
- Run example/main.js with npm start
Screenshots
Duplicate #216
I may have found a trick to display only one menu. It's by adding 2 dummy items to the array:
{
label: null
},
{
label: null
}
Like this:
const exampleMenuTemplate = [
{
label: 'Simple O&ptions',
submenu: [
{
label: 'Quit',
click: () => app.quit()
}
]
},
{
label: null
},
{
label: null
}
]