Filter out duplicated dirs

This commit is contained in:
nik012003
2023-07-25 12:27:54 +02:00
parent c679557314
commit 2548cc10d2
5 changed files with 39 additions and 36 deletions

View File

@@ -48,7 +48,6 @@ struct AppGrid {
impl AppGrid {
fn new(client: &Client) -> Self {
let apps = get_desktop_files()
.into_iter()
.filter_map(|d| parse_desktop_file(d).ok())
.filter(|d| !d.no_display)
.enumerate()