Don't save the preferences unless we have to.