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,16 +108,15 @@ function menu_gen.generate(callback)
end
end
end
if target_category then
local name = utils.rtrim(entry.Name) or ""
local cmdline = utils.rtrim(entry.cmdline) or ""
local icon = entry.icon_path or nil
table.insert(result, { name = name,
cmdline = cmdline,
icon = icon,
category = target_category })
unique_entries[unique_key] = true
end
local name = utils.rtrim(entry.Name) or ""
local cmdline = utils.rtrim(entry.cmdline) or ""
local icon = entry.icon_path or nil
table.insert(result, { name = name,
cmdline = cmdline,
icon = icon,
category = target_category })
unique_entries[unique_key] = true
end
end
end