Skip to content
Snippets Groups Projects
Commit a9f8f9d5 authored by meskio's avatar meskio :tent: Committed by Kali Kaneko
Browse files

Toggle app window visibility clicking on the systray icon

parent 67a68be2
No related branches found
No related tags found
No related merge requests found
......@@ -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…")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment