You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When keeping the computer turned on over night, the current day/ today day is not updated. To update the day, the calendar popup has to be closed (which triggers the update, see calendar.lua#L229-L234) and opened again.
I've changed L228-235 in calendar.lua and test it a few weeks (because I'm too lazy to learn Lua or something). I'll create a PR if I know more.
-- OLDifpopup.visiblethen-- to faster render the calendar refresh it and just hidecal:set_date(nil) -- the new date is not set without removing the old onecal:set_date(os.date('*t'))
popup:set_widget(nil) -- just in casepopup:set_widget(cal)
popup.visible=notpopup.visibleelse-- NEW (not tested yet but should work (tm))ifpopup.visiblethen-- to faster render the calendar refresh it and just hidecal:set_date(nil) -- the new date is not set without removing the old onepopup:set_widget(nil) -- just in casepopup.visible=falseelse-- apply it when the calendar is opened! - probably slower but fixes the issue that the-- day is not updated when *opening* the popup (only when closing)cal:set_date(os.date('*t'))
popup:set_widget(cal)
The text was updated successfully, but these errors were encountered:
Luka5W
added a commit
to Luka5W/awesome-wm-widgets
that referenced
this issue
Jan 3, 2024
When keeping the computer turned on over night, the current day/ today day is not updated. To update the day, the calendar popup has to be closed (which triggers the update, see calendar.lua#L229-L234) and opened again.
I've changed L228-235 in calendar.lua and test it a few weeks (because I'm too lazy to learn Lua or something). I'll create a PR if I know more.
The text was updated successfully, but these errors were encountered: