Skip to content

Commit

Permalink
Disable default menu on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Filippo committed May 9, 2023
1 parent 1d5ec94 commit baaf3c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions electron/src/handlers/ui.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ export class UiHandler implements Handler {
]
const menu = Menu.buildFromTemplate(template)
Menu.setApplicationMenu(menu)
} else if (process.platform === 'win32') {
Menu.setApplicationMenu(Menu.buildFromTemplate([]));
}

this.mainWindow.on('close', (event) => { // occours when app.quit() is called or when the app is closed by the OS (eg. click close button)
Expand Down

0 comments on commit baaf3c5

Please sign in to comment.