menubar: Fix hide()
When hide() was called without any calls to shown() before, an error would occur. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
68f0883a44
commit
7f3ff5f26f
|
@ -451,7 +451,9 @@ end
|
|||
|
||||
--- Hide the menubar.
|
||||
function menubar.hide()
|
||||
if instance then
|
||||
instance.wibox.visible = false
|
||||
end
|
||||
end
|
||||
|
||||
--- Get a menubar wibox.
|
||||
|
|
Loading…
Reference in New Issue