From 4244dc924b2bd409f0949a51b52434144c46d8f5 Mon Sep 17 00:00:00 2001 From: Alex Rouse Date: Fri, 7 Nov 2025 09:24:13 -0500 Subject: [PATCH] feat(ui): add custom macOS dock menu with New Window option (#5099) Co-authored-by: Alex Rouse --- ui/desktop/src/main.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ui/desktop/src/main.ts b/ui/desktop/src/main.ts index bfeb1686de..9431af3fde 100644 --- a/ui/desktop/src/main.ts +++ b/ui/desktop/src/main.ts @@ -1847,6 +1847,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();