Add context menu #16

Merged
ishan-karmakar merged 5 commits from add-context-menu into main 2026-06-01 22:56:04 +00:00
Showing only changes of commit 2ed1128607 - Show all commits
+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);