Remove useless loop in hide()
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
3fca4e0677
commit
d1e9c0d5e9
|
@ -65,10 +65,7 @@ end
|
|||
function hide(menu)
|
||||
-- Remove items from screen
|
||||
for i = 1, #menu.items do
|
||||
-- Call mouse_leave to clear menu entry
|
||||
for k, w in pairs(menu.items[i].wibox.widgets) do
|
||||
item_leave(menu, i)
|
||||
end
|
||||
item_leave(menu, i)
|
||||
menu.items[i].wibox.screen = nil
|
||||
end
|
||||
if menu.active_child then
|
||||
|
|
Loading…
Reference in New Issue