1
0
Fork 0
mirror of https://github.com/kbumsik/VirtScreen.git synced 2025-03-09 15:40:18 +00:00

SystrayIcon: Prevent opening window by right click

This commit is contained in:
Bumsik Kim 2018-05-09 12:55:18 -04:00
parent 599beb2557
commit 68efb022c7
No known key found for this signature in database
GPG key ID: E31041C8EC5B01C6

View file

@ -308,11 +308,14 @@ ApplicationWindow {
"The program will keep running in the system tray.\n" +
"To terminate the program, choose \"Quit\" in the \n" +
"context menu of the system tray entry.");
}, 7000);
}, 1500);
}
onActivated: function(reason) {
console.log(reason);
if (reason == Labs.SystemTrayIcon.Context) {
return;
}
if (window.visible) {
window.hide();
return;