FIX: fix the error display for ext slot

jira: none
Change-Id: I940554e6b1a5c8c609561670db79948c9efed63d
This commit is contained in:
zhimin.zeng 2025-03-26 21:40:25 +08:00 committed by Lane.Wei
parent 2e3a5e8ca7
commit 72b5ab7ee4
1 changed files with 13 additions and 5 deletions

View File

@ -2345,9 +2345,9 @@ void CalibrationPresetPage::sync_ams_info(MachineObject* obj)
if (obj->is_multi_extruders()) {
update_multi_extruder_filament_combobox(std::to_string(VIRTUAL_TRAY_MAIN_ID), 0);
update_multi_extruder_filament_combobox(std::to_string(VIRTUAL_TRAY_DEPUTY_ID), 1);
} else {
update_filament_combobox(std::to_string(VIRTUAL_TRAY_MAIN_ID));
}
update_filament_combobox();
}
m_ams_id_to_extruder_id_map.clear();
@ -2564,9 +2564,17 @@ std::vector<FilamentComboBox*> CalibrationPresetPage::get_selected_filament_comb
}
}
else {
for (auto &fcb : m_filament_comboBox_list) {
if (fcb->GetCheckBox()->GetValue()) {
fcb_list.push_back(fcb);
if (m_cali_filament_mode == CalibrationFilamentMode::CALI_MODEL_MULITI) {
for (auto &fcb : m_filament_comboBox_list) {
if (fcb->GetCheckBox()->GetValue()) {
fcb_list.push_back(fcb);
}
}
} else if (m_cali_filament_mode == CalibrationFilamentMode::CALI_MODEL_SINGLE) {
for (auto &fcb : m_filament_comboBox_list) {
if (fcb->GetRadioBox()->GetValue()) {
fcb_list.push_back(fcb);
}
}
}
}