Skip to content

Commit 1be1419

Browse files
authored
fix: ensure timer is stopped if visibility is manually toggled
1 parent 2063b0e commit 1be1419

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

calendar-widget/calendar.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ local function worker(user_args)
243243
function calendar_widget.toggle()
244244

245245
if popup.visible then
246+
auto_hide_timer:stop()
246247
-- to faster render the calendar refresh it and just hide
247248
cal:set_date(nil) -- the new date is not set without removing the old one
248249
cal:set_date(os.date('*t'))

0 commit comments

Comments
 (0)