max-mapper/menubar

Click on app icon will active both app and menubar app

linonetwo opened this issue · 1 comments

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

  1. https://github.com/tiddly-gittly/TiddlyGit-Desktop/blob/35f7d2905783d786881050e182b3ce6f294c034a/src/main.ts#L181-L183
  app.on('activate', async (event) => {
    await windowService.open(WindowNames.main);
  });
  1. 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?