From 013abf5a39f1b9e3f1011b10bd15a11b9b7608b5 Mon Sep 17 00:00:00 2001 From: Zach Peltzer Date: Thu, 28 Sep 2017 15:58:14 -0500 Subject: [PATCH] Display desktop entries with no categories (#2039) --- lib/menubar/menu_gen.lua | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/lib/menubar/menu_gen.lua b/lib/menubar/menu_gen.lua index 3e78337c..519629c7 100644 --- a/lib/menubar/menu_gen.lua +++ b/lib/menubar/menu_gen.lua @@ -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