Deselect space when leaving it

BUG: 473271
This commit is contained in:
Tobias Fella
2023-08-28 00:51:34 +02:00
committed by Tobias Fella
parent cbed8148a3
commit cc60dde62d

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 {