Hide from cmd + tab menu
Opened this issue · 1 comments
yceballost commented
Hi guys
Is it possible to hide my app icon from cmd + tab
menu?
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 commented
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,
},
},
});