Don't show Menubar on alt press

Closes #45
This commit is contained in:
V 2023-07-03 22:25:11 +02:00
parent c587e93c56
commit ed2361ff22
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905

View file

@ -252,7 +252,6 @@ function createMainWindow() {
const win = (mainWin = new BrowserWindow({
show: false,
autoHideMenuBar: true,
webPreferences: {
nodeIntegration: false,
sandbox: false,
@ -272,6 +271,7 @@ function createMainWindow() {
: {}),
...getWindowBoundsOptions()
}));
win.setMenuBarVisibility(false);
win.on("close", e => {
if (isQuitting || Settings.store.minimizeToTray === false || Settings.store.tray === false) return;