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:
@@ -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', '/');
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user