feat: Add connect, disconnect, and logout to context menu

This commit is contained in:
2026-06-01 14:14:45 -05:00
parent c4e57776ca
commit 2ed1128607
+12
View File
@@ -188,6 +188,18 @@ function createTray() {
const icon = nativeImage.createFromPath(resourcePath('VynteIcon.png')).resize({ width: 18, height: 18 });
tray = new Tray(icon);
const contextMenu = Menu.buildFromTemplate([
{
label: 'Connect',
click: connect,
},
{
label: 'Disconnect',
click: disconnect,
},
{
label: 'Logout',
click: logout
},
{ role: 'quit' }
]);
tray.setContextMenu(contextMenu);