Fixed update of extruder ComboBox on switching of application color mode, when SLA-printer is selected.

This commit is contained in:
YuSanka 2024-02-05 10:52:12 +01:00
parent a3f7be2b44
commit 37ba024133

View File

@ -2112,7 +2112,8 @@ void TabFilament::update_extruder_combobox_visibility()
void TabFilament::update_extruder_combobox()
{
const size_t extruder_cnt = static_cast<const ConfigOptionFloats*>(m_preset_bundle->printers.get_edited_preset().config.option("nozzle_diameter"))->values.size();
const size_t extruder_cnt = m_preset_bundle->printers.get_selected_preset().printer_technology() == ptSLA ? m_extruders_cb->GetCount() :
static_cast<const ConfigOptionFloats*>(m_preset_bundle->printers.get_edited_preset().config.option("nozzle_diameter"))->values.size();
if (extruder_cnt != m_extruders_cb->GetCount()) {
m_extruders_cb->Clear();