Display desktop entries with no categories (#2039)
This commit is contained in:
parent
8d34201ec3
commit
013abf5a39
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue