mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
fix: electron menu bar for darwin
This commit is contained in:
parent
c36735575f
commit
58a36b3bba
1 changed files with 4 additions and 1 deletions
|
|
@ -489,7 +489,10 @@ async function createWindow(first = true): Promise<void> {
|
|||
|
||||
const menuBuilder = new MenuBuilder(mainWindow);
|
||||
menuBuilder.buildMenu();
|
||||
|
||||
if (process.platform !== 'darwin') {
|
||||
Menu.setApplicationMenu(null);
|
||||
}
|
||||
|
||||
// Open URLs in the user's browser
|
||||
mainWindow.webContents.setWindowOpenHandler((edata) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue