FIX: [STUDIO-2150] export config not work

Change-Id: I05915a9dc5e767273e09ecdebaf5a679435c080f
This commit is contained in:
chunmao.guo 2023-03-07 11:55:44 +08:00 committed by Lane.Wei
parent 2bb8875e30
commit c945c47383

View file

@ -3507,6 +3507,7 @@ std::vector<std::string> PresetBundle::export_current_configs(const std::string
if ((preset->is_system && !export_system_settings) || preset->is_default) if ((preset->is_system && !export_system_settings) || preset->is_default)
continue; continue;
std::string file = path + "/" + preset->name + ".json"; std::string file = path + "/" + preset->name + ".json";
if (overwrite == 0) overwrite = 1;
if (boost::filesystem::exists(file) && overwrite < 2) { if (boost::filesystem::exists(file) && overwrite < 2) {
overwrite = override_confirm(preset->name); overwrite = override_confirm(preset->name);
} }