mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 02:07:54 -06:00
Unable to Export Config Files #622
This commit is contained in:
parent
615a317173
commit
7816c93741
1 changed files with 2 additions and 2 deletions
|
@ -3512,9 +3512,9 @@ std::vector<std::string> PresetBundle::export_current_configs(const std::string
|
||||||
std::string file = path + "/" + preset->name + ".json";
|
std::string file = path + "/" + preset->name + ".json";
|
||||||
if (boost::filesystem::exists(file) && overwrite < 2) {
|
if (boost::filesystem::exists(file) && overwrite < 2) {
|
||||||
overwrite = override_confirm(preset->name);
|
overwrite = override_confirm(preset->name);
|
||||||
|
if (overwrite == 0 || overwrite == 2)
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
if (overwrite == 0 || overwrite == 2)
|
|
||||||
continue;
|
|
||||||
preset->config.save_to_json(file, preset->name, "", preset->version.to_string());
|
preset->config.save_to_json(file, preset->name, "", preset->version.to_string());
|
||||||
result.push_back(file);
|
result.push_back(file);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue