From 68efb022c75b85f1928599ad11145c9dcb692f81 Mon Sep 17 00:00:00 2001 From: Bumsik Kim Date: Wed, 9 May 2018 12:55:18 -0400 Subject: [PATCH] SystrayIcon: Prevent opening window by right click --- main.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.qml b/main.qml index fa4a66d..5c9a0df 100644 --- a/main.qml +++ b/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;