summaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-05 22:15:31 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-05 22:15:31 +1000
commitdff2bde9a3a5dba78deb799919224e8f33f11ce2 (patch)
treef42bd8422865bf640ba01a9dab44ae2bd53d612e /widgets
parentfeat: show osd on border hover (diff)
downloadcaelestia-shell-dff2bde9a3a5dba78deb799919224e8f33f11ce2.tar.gz
caelestia-shell-dff2bde9a3a5dba78deb799919224e8f33f11ce2.tar.bz2
caelestia-shell-dff2bde9a3a5dba78deb799919224e8f33f11ce2.zip
thumbnailer: use single process + load original
Diffstat (limited to 'widgets')
-rw-r--r--widgets/CachingImage.qml16
1 files changed, 2 insertions, 14 deletions
diff --git a/widgets/CachingImage.qml b/widgets/CachingImage.qml
index 08be473..0622d69 100644
--- a/widgets/CachingImage.qml
+++ b/widgets/CachingImage.qml
@@ -6,22 +6,10 @@ Image {
id: root
property string path
- readonly property Thumbnailer.Thumbnail thumbnail: Thumbnailer.go(path, width, height)
+ property bool loadOriginal
+ readonly property Thumbnailer.Thumbnail thumbnail: Thumbnailer.go(this)
source: thumbnail.path ? `file://${thumbnail.path}` : ""
asynchronous: true
fillMode: Image.PreserveAspectCrop
-
- onPathChanged: {
- thumbnail.originalPath = path;
- thumbnail.reload();
- }
- onWidthChanged: {
- thumbnail.width = width;
- thumbnail.reload();
- }
- onHeightChanged: {
- thumbnail.height = height;
- thumbnail.reload();
- }
}