From 5d1af66c38a891471cd9d8bc6556d74666092a8c Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Sat, 30 Jan 2021 05:35:45 +0200 Subject: [PATCH] Don't display default and superlowres images at the same time --- qml/components/TDLibMinithumbnail.qml | 2 -- qml/components/TDLibPhoto.qml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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 {