mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Add recursive wallpaper setting in WallpaperTab (implements #568)
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user