FIX: clean ams mapping result when reading info is timeout

Change-Id: I2dbe6dd4edd26f0464c94aa3237ac371ec4a562c
This commit is contained in:
Stone Li 2022-09-08 14:44:55 +08:00 committed by Lane.Wei
parent c278291808
commit 4987f19147

View file

@ -1697,6 +1697,8 @@ void SelectMachineDialog::on_ok(wxCommandEvent &event)
m_print_job->task_use_ams = false;
}
BOOST_LOG_TRIVIAL(info) << "print_job: use_ams = " << m_print_job->task_use_ams;
m_print_job->on_success([this]() { finish_mode(); });
wxCommandEvent evt(m_plater->get_print_finished_event());
@ -1973,6 +1975,8 @@ void SelectMachineDialog::update_show_status()
if (!obj_->is_info_ready()) {
if (is_timeout()) {
m_ams_mapping_result.clear();
sync_ams_mapping_result(m_ams_mapping_result);
show_status(PrintDialogStatus::PrintStatusReadingTimeout);
return;
}