don't skip hidden entries: fixes #22 added in #19

This commit is contained in:
piotr
2021-09-07 02:07:29 +02:00
parent 1be8e432fa
commit 9d50258042
3 changed files with 4 additions and 2 deletions

View File

@@ -20,4 +20,5 @@ uninstall:
rm /usr/bin/nwg-drawer rm /usr/bin/nwg-drawer
run: run:
go run *.go go build -o bin/nwg-drawer *.go
bin/nwg-drawer

Binary file not shown.

View File

@@ -366,7 +366,8 @@ func parseDesktopFiles(desktopFiles []string) string {
if entry.NoDisplay { if entry.NoDisplay {
hidden++ hidden++
continue // We still need hidden entries, so `continue` is disallowed here
// Fixes #22 introduced in #19
} }
id2entry[entry.DesktopID] = entry id2entry[entry.DesktopID] = entry