mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +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);
|
const menuBuilder = new MenuBuilder(mainWindow);
|
||||||
menuBuilder.buildMenu();
|
menuBuilder.buildMenu();
|
||||||
Menu.setApplicationMenu(null);
|
|
||||||
|
if (process.platform !== 'darwin') {
|
||||||
|
Menu.setApplicationMenu(null);
|
||||||
|
}
|
||||||
|
|
||||||
// Open URLs in the user's browser
|
// Open URLs in the user's browser
|
||||||
mainWindow.webContents.setWindowOpenHandler((edata) => {
|
mainWindow.webContents.setWindowOpenHandler((edata) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue