mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 20:28:08 -06:00
Follow-up 409849d238
:
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:
parent
532659a7f6
commit
28b92215c3
3 changed files with 51 additions and 14 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue