diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-07 17:58:18 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-07 17:58:18 +1000 |
| commit | 8a6679eace029338747f0fe95ca683016fce783e (patch) | |
| tree | cfec1f7045ac457478acf8917a123907ccee5d6c /widgets/CachingImage.qml | |
| parent | dashboard: fix pfp picker (diff) | |
| download | caelestia-shell-8a6679eace029338747f0fe95ca683016fce783e.tar.gz caelestia-shell-8a6679eace029338747f0fe95ca683016fce783e.tar.bz2 caelestia-shell-8a6679eace029338747f0fe95ca683016fce783e.zip | |
paths: decode urls
Fixes spaces in paths breaking things
Diffstat (limited to 'widgets/CachingImage.qml')
| -rw-r--r-- | widgets/CachingImage.qml | 4 |
1 files changed, 2 insertions, 2 deletions
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) |