RefreshWidgetsValues sets dirty back to the original value, so this change was not strictly necessary. However, it seems prudent to me in case refreshWidgetsValues changes functionality in the future. It's no problem to remove this change.