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:
Daniel Hahler 2015-10-12 00:29:18 +02:00
parent efbddb5875
commit 75341d9e38
1 changed files with 1 additions and 1 deletions

View File

@ -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,