Replies: 1 comment 2 replies
-
You don't need to make it a DateTime. You could make an integer instead and do |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a button which should be disabled after a certain hour every day.
In order to have it automatically change when necessary I thought of using a timer to rebuild the button every minute, so that all the checks get recomputed with the current
DateTime.now()
.My current solution is this:
I however don't really need that
now
variable, so I was curious if there is a way to get rid of it and just have the timer tell the widget to rebuild.I am also open to other solutions if there are any.
Beta Was this translation helpful? Give feedback.
All reactions