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:
parent
599beb2557
commit
68efb022c7
1 changed files with 4 additions and 1 deletions
5
main.qml
5
main.qml
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue