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:
parent
690772abc7
commit
36bb9b4476
|
@ -249,7 +249,7 @@ function menu:exec(num, opts)
|
|||
self.active_child:hide()
|
||||
end
|
||||
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()
|
||||
end
|
||||
elseif type(cmd) == "string" then
|
||||
|
|
Loading…
Reference in New Issue