mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-30 15:07:49 -04:00
settings: fix wallpaper preview cache update on per-mode change
This commit is contained in:
1 parent
022b4b4bb3
commit
d6b407ec37
1 file changed
+4
-1
@@ -34,7 +34,10 @@ Image {
|
||||
return;
|
||||
}
|
||||
Paths.mkdir(Paths.imagecache);
|
||||
source = cachePath || encodedImagePath;
|
||||
const hash = djb2Hash(imagePath);
|
||||
const cPath = hash ? `${Paths.stringify(Paths.imagecache)}/${hash}@${maxCacheSize}x${maxCacheSize}.png` : "";
|
||||
const encoded = "file://" + imagePath.split('/').map(s => encodeURIComponent(s)).join('/');
|
||||
source = cPath || encoded;
|
||||
}
|
||||
|
||||
onStatusChanged: {
|
||||
|
||||
Reference in new issue
Block a user