mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Unable to Export Config Files #622
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user