The desktop and other settings reverting back was a direct result of a Windows update.
Windows updates in the background and waits for a reboot for those changes to take place.
The fact that you also needed to update Avast at the same time was simply a coincidence.