Commit a9f8f9d5 authored by meskio's avatar meskio Committed by Kali Kaneko
Browse files

Toggle app window visibility clicking on the systray icon

parent 67a68be2
......@@ -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…")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment