Add recursive wallpaper setting in WallpaperTab (implements #568)

This commit is contained in:
Ly-sec
2025-10-27 17:05:11 +01:00
parent 1067ffe7a3
commit f30d1d3ea1
11 changed files with 123 additions and 8 deletions
+8
View File
@@ -44,6 +44,14 @@ ColumnLayout {
onButtonClicked: mainFolderPicker.open()
}
// Recursive search
NToggle {
label: I18n.tr("settings.wallpaper.settings.recursive-search.label")
description: I18n.tr("settings.wallpaper.settings.recursive-search.description")
checked: Settings.data.wallpaper.recursiveSearch
onToggled: checked => Settings.data.wallpaper.recursiveSearch = checked
}
// Monitor-specific directories
NToggle {
label: I18n.tr("settings.wallpaper.settings.monitor-specific.label")
+4
View File
@@ -291,6 +291,10 @@ NPanel {
return
}
wallpapersList = WallpaperService.getWallpapersList(targetScreen.name)
Logger.i("WallpaperPanel", "Got", wallpapersList.length, "wallpapers for screen", targetScreen.name)
if (wallpapersList.length > 0) {
Logger.d("WallpaperPanel", "First 5 wallpapers:", wallpapersList.slice(0, 5))
}
// Pre-compute basenames once for better performance
wallpapersWithNames = wallpapersList.map(function (p) {