Skip to content

Commit c0d64a7

Browse files
committed
fix: Frame and menu settings for Electron
1 parent 8a84e5c commit c0d64a7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/Main.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,7 @@ export function main(init: Init): void {
502502
height: height,
503503
minWidth: 200,
504504
minHeight: 200,
505-
frame: true,
506-
// frame: !state.preferences.useCustomTitlebar,
505+
frame: !state.preferences.useCustomTitlebar,
507506
icon: path.join(__dirname, '../window/images/icon.png'),
508507
webPreferences: {
509508
preload: path.resolve(__dirname, 'preload.js'),
@@ -519,7 +518,7 @@ export function main(init: Init): void {
519518
}
520519
});
521520
// Remove the menu bar
522-
// window.setMenu(null);
521+
window.setMenu(null);
523522
// and load the index.html of the app.
524523
window.loadFile(path.join(__dirname, '../window/renderer.html'));
525524
// Open the DevTools. Don't open if using a remote debugger (like vscode)

0 commit comments

Comments
 (0)