Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions ui/desktop/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1770,6 +1770,19 @@ async function appMain() {
}
}, 2000); // 2 second delay after window is shown

// Setup macOS dock menu
if (process.platform === 'darwin') {
const dockMenu = Menu.buildFromTemplate([
{
label: 'New Window',
click: () => {
createNewWindow(app);
},
},
]);
app.dock?.setMenu(dockMenu);
}

// Get the existing menu
const menu = Menu.getApplicationMenu();

Expand Down
Loading