Merge pull request #76 from xdenotte/master

Fix Wallpaper preview
This commit is contained in:
BB authored and GitHub committed 2025-08-20 18:06:24 -04:00
commit e5773c9c6a
2 files changed
+3 -4

No files matched your search

+2 -3
View File
@@ -240,10 +240,9 @@ DankModal {
CachingImage {
anchors.fill: parent
imagePath: !delegateRoot.fileIsDir ? delegateRoot.filePath : ""
source: (!delegateRoot.fileIsDir && isImageFile(delegateRoot.fileName)) ? ("file://" + delegateRoot.filePath) : ""
fillMode: Image.PreserveAspectCrop
visible: !delegateRoot.fileIsDir && isImageFile(
delegateRoot.fileName)
visible: !delegateRoot.fileIsDir && isImageFile(delegateRoot.fileName)
maxCacheSize: 80
}
+1 -1
View File
@@ -155,7 +155,7 @@ Item {
CachingImage {
anchors.fill: parent
anchors.margins: 1
imagePath: SessionData.wallpaperPath || ""
source: SessionData.wallpaperPath !== "" ? "file://" + SessionData.wallpaperPath : ""
fillMode: Image.PreserveAspectCrop
visible: SessionData.wallpaperPath !== ""
maxCacheSize: 160