Calendar: add hide() method

This commit is contained in:
crater2150 2015-02-19 11:08:53 +01:00
parent 65b9eba74e
commit 0fd3b2620c

View file

@ -219,6 +219,10 @@ function calendar:show()
self.wibox.visible = true
end
function calendar:hide()
self.wibox.visible = false
end
function calendar:update_before_showing()
if not self.wibox.visible then
self:now()