Click on app icon will active both app and menubar app
linonetwo opened this issue · 1 comments
linonetwo commented
Description
I'm creating an app that have both main window and menubar small window.
But clicking on the main window's icon will openup both main window and menubar app, and menubar app will flash for a while.
2021-10-27.1.36.59.mov
2021-10-27.1.37.12.mov
Steps to Reproduce the Problem
app.on('activate', async (event) => {
await windowService.open(WindowNames.main);
});
- if I comment out this line of code, then click on the app icon will only open menubar app, which is I don't want, I hope menubar app will only be opened when click on icon in the menubar, instead of the icon in docker bar.
Expected Behaviour
Don't open menubar app when click on icon one the docker bar.
Actual Behaviour
It will open menubar app.
Specifications
- Menubar version: "menubar": "9.0.6",
- Platform: MacOS
- Electron version: v15.3.0
Other information
Is it rare to have both main window and menubar app?
linonetwo commented
I think these lines should be configurable