FIX:fixed the issue of not updating the use ams option

jira:[none]

Change-Id: Ica070e72345a175952c227bfb6a5219bb2a41dcd
(cherry picked from commit 8bd6e99f0799bfc92b1fd11d94fb316e6a785d5c)
This commit is contained in:
tao wang
2025-03-12 10:49:43 +08:00
committed by Noisyfox
parent f56df96b63
commit 838da20835

View File

@@ -2811,6 +2811,7 @@ void SelectMachineDialog::on_set_finish_mapping(wxCommandEvent &evt)
} }
} }
int use_ext_count = 0; int use_ext_count = 0;
int use_ams_count = 0; int use_ams_count = 0;
@@ -4016,7 +4017,7 @@ void SelectMachineDialog::reset_and_sync_ams_list()
pos.y += item->GetRect().height; pos.y += item->GetRect().height;
m_mapping_popup.Move(pos); 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_parent_item(item);
m_mapping_popup.set_only_show_ext_spool(false); m_mapping_popup.set_only_show_ext_spool(false);
m_mapping_popup.set_current_filament_id(extruder); m_mapping_popup.set_current_filament_id(extruder);