feat: Add connect, disconnect, and logout to context menu
This commit is contained in:
+12
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user