Merge pull request #348 from monich/superlowres

Don't display default and superlowres images at the same time
This commit is contained in:
Sebastian Wolf 2021-01-31 12:20:39 +01:00 committed by GitHub
commit f65a62d61f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View file

@ -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

View file

@ -54,7 +54,7 @@ Item {
}
BackgroundImage {
visible: tdLibImage.opacity < 1.0
visible: !tdLibImage.visible && !(minithumbnailLoader.item && minithumbnailLoader.item.visible)
}
TDLibImage {