diff options
Diffstat (limited to 'gui/qml/main.qml')
-rw-r--r-- | gui/qml/main.qml | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/gui/qml/main.qml b/gui/qml/main.qml index ddd049d..a29c8d1 100644 --- a/gui/qml/main.qml +++ b/gui/qml/main.qml @@ -320,10 +320,15 @@ Window { id: systray visible: systrayVisible - signal activatedSignal onActivated: { - systray.activatedSignal() + if (reason != SystemTrayIcon.Context) { + if (app.visible) { + app.hide() + } else { + app.show() + } + } } @@ -336,16 +341,6 @@ Window { id: systrayMenu - Connections { - target: systray - onActivatedSignal: { - if (Qt.platform.os === "windows" || desktop === "LXQt") { - console.debug("open systray menu") - systrayMenu.open() - } - } - } - MenuItem { id: statusItem text: qsTr("Checking status…") |