menubar.menu_gen.generate: do not call lookup_icon again
`menubar.utils.lookup_icon` gets called via `menubar.utils.parse` already.
This commit is contained in:
parent
efbddb5875
commit
75341d9e38
|
@ -112,7 +112,7 @@ function menu_gen.generate()
|
|||
if target_category then
|
||||
local name = trim(program.Name) or ""
|
||||
local cmdline = trim(program.cmdline) or ""
|
||||
local icon = utils.lookup_icon(trim(program.icon_path)) or nil
|
||||
local icon = program.icon_path or nil
|
||||
table.insert(result, { name = name,
|
||||
cmdline = cmdline,
|
||||
icon = icon,
|
||||
|
|
Loading…
Reference in New Issue