From 8a6679eace029338747f0fe95ca683016fce783e Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 7 Jul 2025 17:58:18 +1000 Subject: paths: decode urls Fixes spaces in paths breaking things --- widgets/CachingImage.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'widgets') diff --git a/widgets/CachingImage.qml b/widgets/CachingImage.qml index a786720..f27ecbd 100644 --- a/widgets/CachingImage.qml +++ b/widgets/CachingImage.qml @@ -8,7 +8,7 @@ Image { property string path property string hash - readonly property string cachePath: `${Paths.imagecache}/${hash}@${width}x${height}.png`.slice(7) + readonly property string cachePath: `${Paths.stringify(Paths.imagecache)}/${hash}@${width}x${height}.png`.slice(7) asynchronous: true cache: false @@ -16,7 +16,7 @@ Image { sourceSize.width: width sourceSize.height: height - onPathChanged: shaProc.exec(["sha256sum", path.replace("file://", "")]) + onPathChanged: shaProc.exec(["sha256sum", Paths.strip(path)]) onCachePathChanged: { if (hash) -- cgit v1.2.3-freya