Fix system tray not working
This commit is contained in:
@@ -81,12 +81,18 @@ Kirigami.ApplicationWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showWindow() {
|
||||||
|
root.show()
|
||||||
|
root.raise()
|
||||||
|
root.requestActivate()
|
||||||
|
}
|
||||||
|
|
||||||
TrayIcon {
|
TrayIcon {
|
||||||
id: trayIcon
|
id: trayIcon
|
||||||
visible: true
|
visible: true
|
||||||
iconSource: ":/assets/img/icon.png"
|
iconSource: ":/assets/img/icon.png"
|
||||||
isOnline: true
|
isOnline: true
|
||||||
onShowWindow: window.showWindow()
|
onShowWindow: root.showWindow()
|
||||||
}
|
}
|
||||||
|
|
||||||
contextDrawer: RoomDrawer {
|
contextDrawer: RoomDrawer {
|
||||||
|
|||||||
Reference in New Issue
Block a user