fix(wallpaper): limit to 100 wallpapers loaded
This commit is contained in:
parent
a0017eeb9c
commit
f48bb86495
1 changed files with 4 additions and 0 deletions
|
|
@ -117,6 +117,10 @@ pub async fn load_each_from_path(
|
||||||
|
|
||||||
if infer::MatcherType::Image == kind.matcher_type() {
|
if infer::MatcherType::Image == kind.matcher_type() {
|
||||||
wallpapers.insert(path);
|
wallpapers.insert(path);
|
||||||
|
|
||||||
|
if wallpapers.len() > 99 {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue