FIX: cali - The progress bar should not be displayed

Jira: XXXX
Change-Id: Ifcd8255bb03141b34bfa420126005955e2f14b32
This commit is contained in:
zhimin.zeng 2023-09-20 17:31:34 +08:00 committed by Lane.Wei
parent e4ddf0cec1
commit 3e19a483cb

View file

@ -583,6 +583,7 @@ void PressureAdvanceWizard::on_cali_start()
if (!wx_err_string.empty()) { if (!wx_err_string.empty()) {
MessageDialog msg_dlg(nullptr, wx_err_string, wxEmptyString, wxICON_WARNING | wxOK); MessageDialog msg_dlg(nullptr, wx_err_string, wxEmptyString, wxICON_WARNING | wxOK);
msg_dlg.ShowModal(); msg_dlg.ShowModal();
return;
} }
show_step(m_curr_step->next); show_step(m_curr_step->next);
@ -645,6 +646,7 @@ void PressureAdvanceWizard::on_cali_start()
if (!wx_err_string.empty()) { if (!wx_err_string.empty()) {
MessageDialog msg_dlg(nullptr, wx_err_string, wxEmptyString, wxICON_WARNING | wxOK); MessageDialog msg_dlg(nullptr, wx_err_string, wxEmptyString, wxICON_WARNING | wxOK);
msg_dlg.ShowModal(); msg_dlg.ShowModal();
return;
} }
preset_page->on_cali_start_job(); preset_page->on_cali_start_job();
@ -943,6 +945,7 @@ void FlowRateWizard::on_cali_start(CaliPresetStage stage, float cali_value, Flow
if (!wx_err_string.empty()) { if (!wx_err_string.empty()) {
MessageDialog msg_dlg(nullptr, wx_err_string, wxEmptyString, wxICON_WARNING | wxOK); MessageDialog msg_dlg(nullptr, wx_err_string, wxEmptyString, wxICON_WARNING | wxOK);
msg_dlg.ShowModal(); msg_dlg.ShowModal();
return;
} }
show_step(m_curr_step->next); show_step(m_curr_step->next);
@ -1007,6 +1010,7 @@ void FlowRateWizard::on_cali_start(CaliPresetStage stage, float cali_value, Flow
if (!wx_err_string.empty()) { if (!wx_err_string.empty()) {
MessageDialog msg_dlg(nullptr, wx_err_string, wxEmptyString, wxICON_WARNING | wxOK); MessageDialog msg_dlg(nullptr, wx_err_string, wxEmptyString, wxICON_WARNING | wxOK);
msg_dlg.ShowModal(); msg_dlg.ShowModal();
return;
} }
preset_page->on_cali_start_job(); preset_page->on_cali_start_job();
if (temp_filament_preset) if (temp_filament_preset)
@ -1344,6 +1348,7 @@ void MaxVolumetricSpeedWizard::on_cali_start()
if (!wx_err_string.empty()) { if (!wx_err_string.empty()) {
MessageDialog msg_dlg(nullptr, wx_err_string, wxEmptyString, wxICON_WARNING | wxOK); MessageDialog msg_dlg(nullptr, wx_err_string, wxEmptyString, wxICON_WARNING | wxOK);
msg_dlg.ShowModal(); msg_dlg.ShowModal();
return;
} }
preset_page->on_cali_start_job(); preset_page->on_cali_start_job();