Added check for visibility for all loaded presets.
Added notification about this action.
 + PresetComboBox: Fixed update() function for physical printers, when some of related presets are invisible.
This commit is contained in:
YuSanka 2021-03-02 12:06:11 +01:00
parent 532659a7f6
commit 28b92215c3
3 changed files with 51 additions and 14 deletions

View file

@ -877,16 +877,6 @@ void PresetBundle::load_config_file_config(const std::string &name_or_path, bool
}
}
// 3.1) If loaded filaments are invisible/non-instaled, set them as visible
for (const std::string& filament : this->filament_presets) {
Preset* preset = this->filaments.find_preset(filament);
if (preset && !preset->is_visible) {
preset->is_visible = true;
if (preset->name == this->filaments.m_edited_preset.name)
this->filaments.get_selected_preset().is_visible = true;
}
}
// 4) Load the project config values (the per extruder wipe matrix etc).
this->project_config.apply_only(config, s_project_options);