fix: specify sourceSize as a single prop

So we don't get 2 updates when width/height change
This commit is contained in:
2 * r + 2 * t 2026-04-27 20:51:42 +10:00
parent 4f1f609b55
commit 1f7aeec8c4
2 changed files with 2 additions and 5 deletions

View file

@ -9,6 +9,5 @@ Image {
asynchronous: true
fillMode: Image.PreserveAspectCrop
source: IUtils.urlForPath(path, fillMode)
sourceSize.width: width
sourceSize.height: height
sourceSize: Qt.size(width, height)
}

View file

@ -63,11 +63,9 @@ Item {
}
CachingImage {
anchors.fill: parent
path: root.modelData.path
smooth: !root.PathView.view.moving
cache: true
anchors.fill: parent
}
}