Fix warning for empty avatar source
This commit is contained in:
@@ -82,7 +82,7 @@ QQC2.Control {
|
|||||||
Layout.preferredHeight: width
|
Layout.preferredHeight: width
|
||||||
display: Kirigami.NavigationTabButton.IconOnly
|
display: Kirigami.NavigationTabButton.IconOnly
|
||||||
text: model.name
|
text: model.name
|
||||||
source: "image://mxc/" + model.avatar
|
source: model.avatar ? ("image://mxc/" + model.avatar) : ""
|
||||||
name: model.name
|
name: model.name
|
||||||
onClicked: root.selectedSpaceId = model.id
|
onClicked: root.selectedSpaceId = model.id
|
||||||
QQC2.ToolTip.visible: hovered
|
QQC2.ToolTip.visible: hovered
|
||||||
|
|||||||
Reference in New Issue
Block a user