Skip to content

Commit

Permalink
electron: Auto-hide menu bar
Browse files Browse the repository at this point in the history
In Windows and some Linux window-managers it was on the top of the window adding nothing to the application and wasting space.
  • Loading branch information
rafaellehmkuhl committed Jan 16, 2025
1 parent 7ae62e6 commit 9888348
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function createWindow(): void {
contextIsolation: true,
nodeIntegration: false,
},
autoHideMenuBar: true,
width: store.get('windowBounds')?.width ?? screen.getPrimaryDisplay().workAreaSize.width,
height: store.get('windowBounds')?.height ?? screen.getPrimaryDisplay().workAreaSize.height,
x: store.get('windowBounds')?.x ?? screen.getPrimaryDisplay().bounds.x,
Expand Down

0 comments on commit 9888348

Please sign in to comment.