From be90b3f74b3aff3ce8e16945614d99a3a0ebe575 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Fri, 12 Dec 2025 22:18:44 -0500 Subject: [PATCH] wallpaperselector: Fix changes and use proper preview path This updates the wallpaper selector to deal with the latest API changes in the image model. --- .../mobileshell/qml/homescreen/WallpaperSelector.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/mobileshell/qml/homescreen/WallpaperSelector.qml b/components/mobileshell/qml/homescreen/WallpaperSelector.qml index 7d29e878..e7c09cea 100644 --- a/components/mobileshell/qml/homescreen/WallpaperSelector.qml +++ b/components/mobileshell/qml/homescreen/WallpaperSelector.qml @@ -135,16 +135,16 @@ Controls.Drawer { Image { id: walliePreview anchors.fill: parent - visible: model.path != null + visible: model.source != null asynchronous: true cache: false fillMode: Image.PreserveAspectCrop - // HACK: for some reason the wallpaper preview doesn't load, just load the full image - source: model.path + source: model.preview + sourceSize: Qt.size(width * 3, height * 3) } } onClicked: { - WallpaperImagePlugin.WallpaperPlugin.setHomescreenWallpaper(model.path); + WallpaperImagePlugin.WallpaperPlugin.setHomescreenWallpaper(model.source); } Keys.onReturnPressed: { clicked();