Calendar: add hide() method
This commit is contained in:
parent
65b9eba74e
commit
0fd3b2620c
|
@ -219,6 +219,10 @@ function calendar:show()
|
||||||
self.wibox.visible = true
|
self.wibox.visible = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function calendar:hide()
|
||||||
|
self.wibox.visible = false
|
||||||
|
end
|
||||||
|
|
||||||
function calendar:update_before_showing()
|
function calendar:update_before_showing()
|
||||||
if not self.wibox.visible then
|
if not self.wibox.visible then
|
||||||
self:now()
|
self:now()
|
||||||
|
|
Loading…
Reference in a new issue