From 184b84f8fd3ab99f706b9a1f58e890dadd0e71fc Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Thu, 28 Sep 2023 11:39:18 +0200 Subject: [PATCH] Try to solve issue with image mipmap not applying properly --- src/qml/ImageWithFallback.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qml/ImageWithFallback.qml b/src/qml/ImageWithFallback.qml index 11943eab..d795674c 100644 --- a/src/qml/ImageWithFallback.qml +++ b/src/qml/ImageWithFallback.qml @@ -16,7 +16,7 @@ import org.kde.kasts Item { id: root - property string imageSource: "" + property string imageSource: "no-image" property real imageOpacity: 1 property int absoluteRadius: 0 property real fractionalRadius: 0.0 @@ -29,7 +29,7 @@ Item { Loader { id: imageLoader anchors.fill: parent - sourceComponent: imageSource === "no-image" ? fallbackImg : (imageSource === "fetching" ? loaderSymbol : realImg ) + sourceComponent: (imageSource === "no-image" || imageSource === "") ? fallbackImg : (imageSource === "fetching" ? loaderSymbol : realImg ) opacity: root.imageOpacity layer.enabled: (root.absoluteRadius > 0 || root.fractionalRadius > 0) layer.effect: OpacityMask {