fix: wallpaper discovery

Allows settings to show installed wallpapers.

- Modified `load_each_from_path` to recursively
discover wallpapers, limited depth to 3 for
performance.
This commit is contained in:
Eduardo Flores 2025-06-13 16:23:28 -07:00 committed by Michael Murphy
parent 1b2aba0107
commit 8ca65bafe4
4 changed files with 34 additions and 49 deletions

View file

@ -1178,11 +1178,6 @@ pub async fn change_folder(current_folder: PathBuf) -> Context {
let mut update = Context::default();
let mut streams = Vec::with_capacity(2);
// Include the cosmic background folder when loading the system wallpapers.
if current_folder == Config::default_folder() {
streams.push(wallpaper::load_each_from_path(Config::default_folder().join("cosmic")).await);
}
streams.push(wallpaper::load_each_from_path(current_folder).await);
for mut wallpapers in streams {