Merge "Disable all preferences (except toggle) when a mode is disabled" into main