I've addressed the issue where the native menubar example was acting up. The problem was that clicking the icon in the menubar was opening both the native menu and the browser window, which wasn't the expected behavior. This seems to only happen on MacOS.
mb.on('ready', () => {
console.log('Menubar app is ready.');
// Your app code here
tray.removeAllListeners(); // Removed unnecessary event listeners
});
Additional Notes:
I want to give credit where it's due: @Jip-Hop initially identified the issue and provided a workaround. Thanks to them for pointing it out! I've just created a pull request.
Hey Guys!
I've addressed the issue where the native menubar example was acting up. The problem was that clicking the icon in the menubar was opening both the native menu and the browser window, which wasn't the expected behavior. This seems to only happen on MacOS.
Additional Notes:
I want to give credit where it's due: @Jip-Hop initially identified the issue and provided a workaround. Thanks to them for pointing it out! I've just created a pull request.