FIX: fix the error display for ext slot
jira: none Change-Id: I940554e6b1a5c8c609561670db79948c9efed63d
This commit is contained in:
parent
2e3a5e8ca7
commit
72b5ab7ee4
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue