custom-electron-titlebar icon indicating copy to clipboard operation
custom-electron-titlebar copied to clipboard

Problem that two menus are not displayed.

Open naive924 opened this issue 2 years ago • 2 comments

Describe the bug The menu is not displayed unless three or more are defined(not displayed if one or two).

To Reproduce

  1. Edit exampleMenuTemplate in example/main.js and make it two
  2. Run example/main.js with npm start

Screenshots image image

naive924 avatar Jul 17 '23 16:07 naive924

Duplicate #216

AlexTorresDev avatar Jul 17 '23 18:07 AlexTorresDev

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
}
]

Madriix avatar Apr 13 '24 21:04 Madriix