menu: Fix regression

There was already a bug, as self.active_child.visible
was used instead of self.active_child.wibox.visible

This caused some confusion that this attribute was a widget.
It wasn't.
This commit is contained in:
Emmanuel Lepage Vallee 2016-05-31 14:30:14 -04:00
parent 690772abc7
commit 36bb9b4476
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ function menu:exec(num, opts)
self.active_child:hide() self.active_child:hide()
end end
self.active_child = self.child[num] self.active_child = self.child[num]
if not self.active_child:get_visible() then if not self.active_child.wibox.visible then
self.active_child:show() self.active_child:show()
end end
elseif type(cmd) == "string" then elseif type(cmd) == "string" then