Move sync_options_with_current_state() call to save_options().