From ca1a325993d452b7983d832dd0178ded1711d3a3 Mon Sep 17 00:00:00 2001 From: Haze <709547807@qq.com> Date: Tue, 17 Mar 2026 10:24:11 +0800 Subject: [PATCH] refactor(tray): update 'Open Chat' action to navigate to the root instead of '/chat' and remove 'Open Dashboard' option (#539) --- electron/main/tray.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/electron/main/tray.ts b/electron/main/tray.ts index 4d6060727..0dc9c9534 100644 --- a/electron/main/tray.ts +++ b/electron/main/tray.ts @@ -90,20 +90,12 @@ export function createTray(mainWindow: BrowserWindow): Tray { { label: 'Quick Actions', submenu: [ - { - label: 'Open Dashboard', - click: () => { - if (mainWindow.isDestroyed()) return; - mainWindow.show(); - mainWindow.webContents.send('navigate', '/'); - }, - }, { label: 'Open Chat', click: () => { if (mainWindow.isDestroyed()) return; mainWindow.show(); - mainWindow.webContents.send('navigate', '/chat'); + mainWindow.webContents.send('navigate', '/'); }, }, {