fix(wallpaper): limit to 100 wallpapers loaded

This commit is contained in:
Michael Aaron Murphy 2024-03-12 07:03:10 +01:00
parent a0017eeb9c
commit f48bb86495
No known key found for this signature in database
GPG key ID: B2732D4240C9212C

View file

@ -117,6 +117,10 @@ pub async fn load_each_from_path(
if infer::MatcherType::Image == kind.matcher_type() {
wallpapers.insert(path);
if wallpapers.len() > 99 {
break;
}
}
}
}