Display desktop entries with no categories (#2039)

This commit is contained in:
Zach Peltzer 2017-09-28 15:58:14 -05:00 committed by Daniel Hahler
parent 8d34201ec3
commit 013abf5a39
1 changed files with 9 additions and 10 deletions

View File

@ -108,7 +108,7 @@ function menu_gen.generate(callback)
end end
end end
end end
if target_category then
local name = utils.rtrim(entry.Name) or "" local name = utils.rtrim(entry.Name) or ""
local cmdline = utils.rtrim(entry.cmdline) or "" local cmdline = utils.rtrim(entry.cmdline) or ""
local icon = entry.icon_path or nil local icon = entry.icon_path or nil
@ -120,7 +120,6 @@ function menu_gen.generate(callback)
end end
end end
end end
end
dirs_parsed = dirs_parsed + 1 dirs_parsed = dirs_parsed + 1
if dirs_parsed == #menu_gen.all_menu_dirs then if dirs_parsed == #menu_gen.all_menu_dirs then
callback(result) callback(result)