FIX: [STUDIO-2150] not save remain configs on no-to-all

Change-Id: I7174a0639599919e43c9110016911db179178d7c
This commit is contained in:
chunmao.guo 2023-02-07 11:12:14 +08:00 committed by Lane.Wei
parent b3a4384aec
commit 881e25e2a2
1 changed files with 2 additions and 2 deletions

View File

@ -3503,9 +3503,9 @@ std::vector<std::string> PresetBundle::export_current_configs(const std::string
std::string file = path + "/" + preset->name + ".json";
if (boost::filesystem::exists(file) && overwrite < 2) {
overwrite = override_confirm(preset->name);
}
if (overwrite == 0 || overwrite == 2)
continue;
}
preset->config.save_to_json(file, preset->name, "", preset->version.to_string());
result.push_back(file);
}