Commit fc86d383 authored by Cyril Rossi's avatar Cyril Rossi Committed by Nate Graham
Browse files

Wallpaper config: fix property imageModel that was missing in delegate

Regression was introduced within ScreenLocker highlight settings MR.
Used for both desktop and lock screen wallpaper configuration.

BUG: 431961


(cherry picked from commit 7d94c13e)
parent 3800aa25
......@@ -389,15 +389,11 @@ ColumnLayout {
id: thumbnailsComponent
Item {
KCM.SettingHighlighter {
target: wallpapersGrid
highlight: configDialog.currentWallpaper === "org.kde.image" && cfg_Image != cfg_ImageDefault
}
property var imageModel: (configDialog.currentWallpaper === "org.kde.image") ? imageWallpaper.wallpaperModel : imageWallpaper.slideFilterModel
KCM.GridView {
id: wallpapersGrid
anchors.fill: parent
property var imageModel: (configDialog.currentWallpaper == "org.kde.image")? imageWallpaper.wallpaperModel : imageWallpaper.slideFilterModel
function resetCurrentIndex() {
//that min is needed as the module will be populated in an async way
......@@ -424,6 +420,11 @@ ColumnLayout {
text: i18nd("plasma_wallpaper_org.kde.image", "There are no wallpapers in this slideshow")
}
}
KCM.SettingHighlighter {
target: wallpapersGrid
highlight: configDialog.currentWallpaper === "org.kde.image" && cfg_Image != cfg_ImageDefault
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment