diff --git a/ui/StatusQ/src/StatusQ/Components/StatusSmartIdenticon.qml b/ui/StatusQ/src/StatusQ/Components/StatusSmartIdenticon.qml index 127c0aa982..a6fa6a3135 100644 --- a/ui/StatusQ/src/StatusQ/Components/StatusSmartIdenticon.qml +++ b/ui/StatusQ/src/StatusQ/Components/StatusSmartIdenticon.qml @@ -51,7 +51,7 @@ Loader { id: statusRoundImage width: parent.width height: parent.height - image.source: root.asset.name + image.source: root.asset.isImage ? root.asset.name : "" showLoadingIndicator: true border.width: root.asset.imgIsIdenticon ? 1 : 0 border.color: Theme.palette.directColor7 diff --git a/ui/app/AppLayouts/Wallet/controls/ManageTokensCommunityTag.qml b/ui/app/AppLayouts/Wallet/controls/ManageTokensCommunityTag.qml index d307245b57..1b313dd8b2 100644 --- a/ui/app/AppLayouts/Wallet/controls/ManageTokensCommunityTag.qml +++ b/ui/app/AppLayouts/Wallet/controls/ManageTokensCommunityTag.qml @@ -54,8 +54,23 @@ Control { asset.width: 16 asset.height: 16 visible: root.useLongTextDescription && !!asset.source - asset.name: !!root.communityImage ? root.communityImage : "help" - asset.isImage: !!root.communityImage + + Component.onCompleted: { + updateCommunityImage() + } + Connections { + target: root + function onCommunityImageChanged() { + identicon.updateCommunityImage() + } + } + + function updateCommunityImage() { + // Ensure we keep the flag in sync with the type of asset otherwise we generate warnings + identicon.asset.name = "" + identicon.asset.isImage = !!root.communityImage + identicon.asset.name = !!root.communityImage ? root.communityImage : "help" + } } RowLayout {