FIX: didn't pass ams_id

Change-Id: If39cb7704ec83944ef35a97509254aae6a9c8598
This commit is contained in:
liz.li 2023-07-07 14:39:10 +08:00 committed by Lane.Wei
parent cae86ad38c
commit 18a5575bbc

View file

@ -996,7 +996,6 @@ void CalibrationPresetPage::update_combobox_filaments(MachineObject* obj)
PresetBundle* preset_bundle = wxGetApp().preset_bundle;
if (preset_bundle && printer_preset) {
preset_bundle->set_calibrate_printer(printer_preset->name);
update_filament_combobox();
}
//step 2: sync ams info from object by default
@ -1440,7 +1439,8 @@ void CalibrationPresetPage::sync_ams_info(MachineObject* obj)
on_switch_ams(obj->amsList.begin()->first);
} else {
m_multi_ams_panel->Hide();
update_filament_combobox();
if (!obj->amsList.empty())
update_filament_combobox(obj->amsList.begin()->first);
}
}
else {