Fix warning for empty avatar source

This commit is contained in:
Tobias Fella
2023-05-14 23:27:41 +02:00
parent 0fbb070bf2
commit 2ff92bea70

View File

@@ -82,7 +82,7 @@ QQC2.Control {
Layout.preferredHeight: width
display: Kirigami.NavigationTabButton.IconOnly
text: model.name
source: "image://mxc/" + model.avatar
source: model.avatar ? ("image://mxc/" + model.avatar) : ""
name: model.name
onClicked: root.selectedSpaceId = model.id
QQC2.ToolTip.visible: hovered