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
|
if target_category then
|
||||||
local name = trim(program.Name) or ""
|
local name = trim(program.Name) or ""
|
||||||
local cmdline = trim(program.cmdline) 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,
|
table.insert(result, { name = name,
|
||||||
cmdline = cmdline,
|
cmdline = cmdline,
|
||||||
icon = icon,
|
icon = icon,
|
||||||
|
|
Loading…
Reference in New Issue