1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

Merge pull request #76 from xdenotte/master

Fix Wallpaper preview
This commit is contained in:
BB
2025-08-20 18:06:24 -04:00
committed by GitHub
2 changed files with 3 additions and 4 deletions

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
}

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