mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-17 09:23:05 +00:00
FIX: crash when sync printer status
jira: none Change-Id: I7198f34b12c720519cc2e092254572fe6ee50778 (cherry picked from commit 6aacef93af32f0316f0758df881744fcda2a09a7)
This commit is contained in:
@@ -3386,6 +3386,14 @@ std::pair<PresetsConfigSubstitutions, size_t> PresetBundle::load_vendor_configs_
|
||||
return std::make_pair(std::move(substitutions), presets_loaded);
|
||||
}
|
||||
|
||||
void PresetBundle::on_extruders_count_changed(int extruders_count)
|
||||
{
|
||||
printers.get_edited_preset().set_num_extruders(extruders_count);
|
||||
update_multi_material_filament_presets();
|
||||
reset_default_nozzle_volume_type();
|
||||
extruder_ams_counts.resize(extruders_count);
|
||||
}
|
||||
|
||||
void PresetBundle::update_multi_material_filament_presets(size_t to_delete_filament_id)
|
||||
{
|
||||
if (printers.get_edited_preset().printer_technology() != ptFFF)
|
||||
|
||||
Reference in New Issue
Block a user