Skip to content

Commit

Permalink
fix: ensure timer is stopped if visibility is manually toggled
Browse files Browse the repository at this point in the history
  • Loading branch information
maverick1872 authored Aug 3, 2024
1 parent 2063b0e commit 1be1419
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions calendar-widget/calendar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit 1be1419

Please sign in to comment.