diff --git a/qml/components/TDLibMinithumbnail.qml b/qml/components/TDLibMinithumbnail.qml index 50f169a..c2b8220 100644 --- a/qml/components/TDLibMinithumbnail.qml +++ b/qml/components/TDLibMinithumbnail.qml @@ -26,14 +26,12 @@ Loader { property bool highlighted anchors.fill: parent active: !!minithumbnail - visible: active sourceComponent: Component { Item { Image { id: minithumbnailImage anchors.fill: parent source: "data:image/jpg;base64,"+minithumbnail.data - asynchronous: true fillMode: tdLibImage.fillMode opacity: status === Image.Ready ? 1.0 : 0.0 cache: false diff --git a/qml/components/TDLibPhoto.qml b/qml/components/TDLibPhoto.qml index 4de80a5..e5daba8 100644 --- a/qml/components/TDLibPhoto.qml +++ b/qml/components/TDLibPhoto.qml @@ -54,7 +54,7 @@ Item { } BackgroundImage { - visible: tdLibImage.opacity < 1.0 + visible: !tdLibImage.visible && !(minithumbnailLoader.item && minithumbnailLoader.item.visible) } TDLibImage {