max-mapper/menubar

How do I hide native menu on left-click...?

jamiebullock opened this issue · 1 comments

Description

If I create a native menu using the code below, then the native menu will show on right click, and both the native menu and Electron window will show on left click.

I want the native menu to show on right click, and the Electron window to show on left click. How can I achieve this?

	const contextMenu = Menu.buildFromTemplate([
		{ label: 'Item1', type: 'radio' },
	]);
	tray.setContextMenu(contextMenu);
	
	const mb = menubar({
		tray,
		showOnRightClick: false,
	});

Closing as a duplicate of #303