Add per widget update intervals with possilbe configuration in deck files#31
Add per widget update intervals with possilbe configuration in deck files#31muesli merged 2 commits intomuesli:masterfrom
Conversation
Awesome, thanks for porting that over!
Sounds good.
I just simplified that logic a bit, so we can use a
|
Not a huge of using zero as "no repaints required" but for the sake of cleaner code it is ok.
Like the way you moved the attribute unpacking to the widgets. This looks so much cleaner now! |
Just a short heads up!
This is more or less the same that I already had impelmented in #22
I decided to place the
intervalright inside theWidgetConfigsince this is a setting that can be applied to every widget.I would have loved to model the
intervalasintbut this would mean that widgets without a specifiedintervalget the "default value" 0 which is not desireable.Furthermore I'm not really happy with the
setIntervalcall in every switch-case but I don't know how I could avoid this.