Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide from cmd + tab menu #374

Open
yceballost opened this issue May 2, 2022 · 1 comment
Open

Hide from cmd + tab menu #374

yceballost opened this issue May 2, 2022 · 1 comment

Comments

@yceballost
Copy link

yceballost commented May 2, 2022

Hi guys

Is it possible to hide my app icon from cmd + tab menu?

image

My config

 browserWindow: {
    height: 666,
    width: 400,
    preloadWindow: true,
    showDockIcon: false,
    resizable: false,
    webPreferences: {
      nodeIntegration: true,
      devTools: false,
      contextIsolation: false,
    },
 "menubar": "^9.1.1",
 "electron": "~15.3.1",
macos: 11.6.1

Thanks!

@devsibwarra
Copy link

devsibwarra commented Jul 29, 2022

Your app is active in the Mac Dock, so it will show up in the Cmd+Tab app list. Hiding it from the Dock will remove it from that list. See the Electron Dock class for more info

Your showDockIcon and preloadWindow options are in the wrong place. They should be in the base level like this

        const mb = menubar({
            showDockIcon: false,
            preloadWindow: true,
            browserWindow: {
                width: 400,
                height: 666,
                resizable: false,
                webPreferences: {
                    preload: MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY,
                    nodeIntegration: false,
                    contextIsolation: true,
                    sandbox: true,
                },
            },
        });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@yceballost @devsibwarra and others