From 1be1419ab4df9a952a6c8285a9d86c7b5d93f615 Mon Sep 17 00:00:00 2001 From: Jonathon Terry <10217028+maverick1872@users.noreply.github.com> Date: Sat, 3 Aug 2024 14:53:09 -0700 Subject: [PATCH] fix: ensure timer is stopped if visibility is manually toggled --- calendar-widget/calendar.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/calendar-widget/calendar.lua b/calendar-widget/calendar.lua index 82b3792..9d7930b 100644 --- a/calendar-widget/calendar.lua +++ b/calendar-widget/calendar.lua @@ -243,6 +243,7 @@ local function worker(user_args) function calendar_widget.toggle() if popup.visible then + auto_hide_timer:stop() -- to faster render the calendar refresh it and just hide cal:set_date(nil) -- the new date is not set without removing the old one cal:set_date(os.date('*t'))