mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-23 02:23:31 +07:00
See #1 Better tray interactivity.
This commit is contained in:
parent
551b61a644
commit
4c1451ae71
4
main.js
4
main.js
@ -65,6 +65,10 @@ function createWindow () {
|
|||||||
|
|
||||||
tray = new Tray(__dirname + '/assets/icon.ico');
|
tray = new Tray(__dirname + '/assets/icon.ico');
|
||||||
tray.setContextMenu(contextMenu);
|
tray.setContextMenu(contextMenu);
|
||||||
|
tray.setIgnoreDoubleClickEvents(true);
|
||||||
|
tray.on('click', function() {
|
||||||
|
mainWindow.show();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// This method will be called when Electron has finished
|
// This method will be called when Electron has finished
|
||||||
|
Loading…
Reference in New Issue
Block a user