refactor(tray): update 'Open Chat' action to navigate to the root instead of '/chat' and remove 'Open Dashboard' option (#539)

This commit is contained in:
Haze
2026-03-17 10:24:11 +08:00
committed by GitHub
Unverified
parent 11e28a2cfa
commit ca1a325993

View File

@@ -90,20 +90,12 @@ export function createTray(mainWindow: BrowserWindow): Tray {
{ {
label: 'Quick Actions', label: 'Quick Actions',
submenu: [ submenu: [
{
label: 'Open Dashboard',
click: () => {
if (mainWindow.isDestroyed()) return;
mainWindow.show();
mainWindow.webContents.send('navigate', '/');
},
},
{ {
label: 'Open Chat', label: 'Open Chat',
click: () => { click: () => {
if (mainWindow.isDestroyed()) return; if (mainWindow.isDestroyed()) return;
mainWindow.show(); mainWindow.show();
mainWindow.webContents.send('navigate', '/chat'); mainWindow.webContents.send('navigate', '/');
}, },
}, },
{ {