Just close the System Preferences window to exit when you’re finished. Your changes will be saved automatically.