FIX: update ams list in SelectMachineDialog

Change-Id: Ice625ab10197ba1e49d70243ee020c5eeae60053
This commit is contained in:
chunmao.guo 2022-09-30 14:06:53 +08:00 committed by Lane.Wei
parent 3651066a77
commit c243893aae

View file

@ -1973,6 +1973,8 @@ void SelectMachineDialog::on_selection_changed(wxCommandEvent &event)
obj->command_get_version();
obj->command_request_push_all();
dev->set_selected_machine(m_printer_last_select);
// Has changed machine unrecoverably
GUI::wxGetApp().sidebar().load_ams_list(obj->amsList);
update_select_layout(obj);
} else {
BOOST_LOG_TRIVIAL(error) << "on_selection_changed dev_id not found";