mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-30 03:10:29 -07:00
FIX: fix the error display for ext slot
jira: none Change-Id: I940554e6b1a5c8c609561670db79948c9efed63d (cherry picked from commit 72b5ab7ee4f59287dd1888c1c4a1f86466fc1afe)
This commit is contained in:
parent
3d5abeba60
commit
00f5812aba
1 changed files with 13 additions and 5 deletions
|
|
@ -2252,9 +2252,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();
|
||||
|
|
@ -2471,9 +2471,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…
Add table
Add a link
Reference in a new issue