Deselect space when leaving it

BUG: 473271
(cherry picked from commit cc60dde62d)
This commit is contained in:
Tobias Fella
2023-08-28 00:51:34 +02:00
committed by Tobias Fella
parent d1efa96b79
commit 4886f1c3b9

View File

@@ -72,7 +72,12 @@ QQC2.Control {
connection: Controller.activeConnection
}
}
onCountChanged: root.enabled = count > 0
onCountChanged: {
root.enabled = count > 0
if (!Controller.activeConnection.room(root.selectedSpaceId)) {
root.selectedSpaceId = ""
}
}
Component.onCompleted: root.enabled = count > 0
delegate: AvatarTabButton {