Skip to content

Commit 02e7778

Browse files
fix: remove default menu from window
1 parent ef48321 commit 02e7778

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

electron/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ function createWindow() {
2424
width: 800,
2525
height: 600,
2626
resizable: false,
27-
autoHideMenuBar: true,
2827
icon: path.join(process.env.VITE_PUBLIC, "electron-vite.svg"),
2928
webPreferences: { preload: path.join(__dirname, "preload.mjs") },
3029
});
3130

31+
win.setMenu(null);
32+
3233
if (VITE_DEV_SERVER_URL) win.loadURL(VITE_DEV_SERVER_URL);
3334
else win.loadFile(path.join(RENDERER_DIST, "index.html"));
3435
}

0 commit comments

Comments
 (0)