FIX:fixed the issue of not updating the use ams option
jira:[none] Change-Id: Ica070e72345a175952c227bfb6a5219bb2a41dcd
This commit is contained in:
parent
4a270ee6d3
commit
8bd6e99f07
|
@ -2823,6 +2823,7 @@ void SelectMachineDialog::on_set_finish_mapping(wxCommandEvent &evt)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
int use_ext_count = 0;
|
||||
int use_ams_count = 0;
|
||||
|
||||
|
@ -2840,7 +2841,7 @@ void SelectMachineDialog::on_set_finish_mapping(wxCommandEvent &evt)
|
|||
|
||||
if (m_ams_mapping_result[i].ams_id == std::to_string(VIRTUAL_TRAY_MAIN_ID) || m_ams_mapping_result[i].ams_id == std::to_string(VIRTUAL_TRAY_DEPUTY_ID)) {
|
||||
use_ext_count++;
|
||||
} else if (m_ams_mapping_result[i].ams_id >= std::to_string(0)) {
|
||||
}else if (m_ams_mapping_result[i].ams_id >= std::to_string(0)) {
|
||||
use_ams_count++;
|
||||
}
|
||||
}
|
||||
|
@ -4032,7 +4033,7 @@ void SelectMachineDialog::reset_and_sync_ams_list()
|
|||
pos.y += item->GetRect().height;
|
||||
m_mapping_popup.Move(pos);
|
||||
|
||||
if (obj_ && m_checkbox_list["use_ams"]->getValue() == "on" && obj_->dev_id == m_printer_last_select) {
|
||||
if (obj_ && obj_->dev_id == m_printer_last_select) {
|
||||
m_mapping_popup.set_parent_item(item);
|
||||
m_mapping_popup.set_only_show_ext_spool(false);
|
||||
m_mapping_popup.set_current_filament_id(extruder);
|
||||
|
|
Loading…
Reference in New Issue