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)
|
function hide(menu)
|
||||||
-- Remove items from screen
|
-- Remove items from screen
|
||||||
for i = 1, #menu.items do
|
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)
|
item_leave(menu, i)
|
||||||
end
|
|
||||||
menu.items[i].wibox.screen = nil
|
menu.items[i].wibox.screen = nil
|
||||||
end
|
end
|
||||||
if menu.active_child then
|
if menu.active_child then
|
||||||
|
|
Loading…
Reference in New Issue