mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
FIX: Update the alias of imported presets
Jira: STUDIO-12801 Change-Id: I7583a2022a0f565103953ee0ca742593769da81f (cherry picked from commit cb470ae21279a555c7f4718673d83e3818b46bf0)
This commit is contained in:
@@ -948,7 +948,7 @@ bool PresetBundle::import_json_presets(PresetsConfigSubstitutions & s
|
||||
}
|
||||
if (!config_substitutions.empty())
|
||||
substitutions.push_back({name, collection->type(), PresetConfigSubstitutions::Source::UserFile, file, std::move(config_substitutions)});
|
||||
|
||||
collection->set_custom_preset_alias(preset);
|
||||
preset.save(inherit_preset ? &inherit_preset->config : nullptr);
|
||||
result.push_back(file);
|
||||
} catch (const std::ifstream::failure &err) {
|
||||
|
||||
Reference in New Issue
Block a user