This function has a comment indicating that currently all events refresh all controls, executing as 'init', due to complex interdependencies. However, for efficiency it would be better not to refresh everything all the time, so let's enable this. Because it may introduce bugs (per the comment), I'm going to commit the change early and then monitor.
Activity
Enable refreshControls context and add guards against invalid duratio…