mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
FIX: fix the error display for ext slot
jira: none Change-Id: I940554e6b1a5c8c609561670db79948c9efed63d (cherry picked from commit 72b5ab7ee4f59287dd1888c1c4a1f86466fc1afe)
This commit is contained in:
@@ -2252,9 +2252,9 @@ void CalibrationPresetPage::sync_ams_info(MachineObject* obj)
|
|||||||
if (obj->is_multi_extruders()) {
|
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_MAIN_ID), 0);
|
||||||
update_multi_extruder_filament_combobox(std::to_string(VIRTUAL_TRAY_DEPUTY_ID), 1);
|
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();
|
m_ams_id_to_extruder_id_map.clear();
|
||||||
@@ -2471,9 +2471,17 @@ std::vector<FilamentComboBox*> CalibrationPresetPage::get_selected_filament_comb
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
for (auto &fcb : m_filament_comboBox_list) {
|
if (m_cali_filament_mode == CalibrationFilamentMode::CALI_MODEL_MULITI) {
|
||||||
if (fcb->GetCheckBox()->GetValue()) {
|
for (auto &fcb : m_filament_comboBox_list) {
|
||||||
fcb_list.push_back(fcb);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user