diff --git a/lib/menubar/init.lua b/lib/menubar/init.lua index 77eee8c6..d081d7f2 100644 --- a/lib/menubar/init.lua +++ b/lib/menubar/init.lua @@ -350,7 +350,9 @@ end function menubar.refresh(scr) menubar.menu_gen.generate(function(entries) menubar.menu_entries = entries - menulist_update(nil, scr) + if instance then + menulist_update(nil, scr) + end end) end