Use confirm_dialog here as this change is destructive and thus not easy to undo. We may want to consider using settings_ui.do_settings_change() instead. Fixes #17073.