Don't display default and superlowres images at the same time
This commit is contained in:
parent
af4a1f3a69
commit
5d1af66c38
2 changed files with 1 additions and 3 deletions
|
@ -26,14 +26,12 @@ Loader {
|
||||||
property bool highlighted
|
property bool highlighted
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
active: !!minithumbnail
|
active: !!minithumbnail
|
||||||
visible: active
|
|
||||||
sourceComponent: Component {
|
sourceComponent: Component {
|
||||||
Item {
|
Item {
|
||||||
Image {
|
Image {
|
||||||
id: minithumbnailImage
|
id: minithumbnailImage
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: "data:image/jpg;base64,"+minithumbnail.data
|
source: "data:image/jpg;base64,"+minithumbnail.data
|
||||||
asynchronous: true
|
|
||||||
fillMode: tdLibImage.fillMode
|
fillMode: tdLibImage.fillMode
|
||||||
opacity: status === Image.Ready ? 1.0 : 0.0
|
opacity: status === Image.Ready ? 1.0 : 0.0
|
||||||
cache: false
|
cache: false
|
||||||
|
|
|
@ -54,7 +54,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
BackgroundImage {
|
BackgroundImage {
|
||||||
visible: tdLibImage.opacity < 1.0
|
visible: !tdLibImage.visible && !(minithumbnailLoader.item && minithumbnailLoader.item.visible)
|
||||||
}
|
}
|
||||||
|
|
||||||
TDLibImage {
|
TDLibImage {
|
||||||
|
|
Loading…
Reference in a new issue