FIX: fix cali bug

Change-Id: I0c7c8d5ebad8139a0959ef9bd2c7991b52fde0c1
(cherry picked from commit 7c1340023a740dc7a8e7938354cd6130b367e03d)
This commit is contained in:
zhimin.zeng 2023-07-04 12:02:35 +08:00 committed by Lane.Wei
parent 83ee1f2050
commit 289dec3997
3 changed files with 12 additions and 3 deletions

View file

@ -826,6 +826,7 @@ void FlowRateWizard::on_cali_save()
if (!save_preset(old_preset_name, new_preset_name.ToStdString(), key_value_map, message)) {
MessageDialog error_msg_dlg(nullptr, message, wxEmptyString, wxICON_WARNING | wxOK);
error_msg_dlg.ShowModal();
return;
}
MessageDialog msg_dlg(nullptr, _L("Flow rate calibration result has been saved to preset"), wxEmptyString, wxICON_WARNING | wxOK);
@ -1077,7 +1078,11 @@ void MaxVolumetricSpeedWizard::on_cali_save()
if (!save_preset(old_preset_name, new_preset_name, key_value_map, message)) {
MessageDialog error_msg_dlg(nullptr, message, wxEmptyString, wxICON_WARNING | wxOK);
error_msg_dlg.ShowModal();
return;
}
MessageDialog msg_dlg(nullptr, _L("Max volumetric speed calibration result has been saved to preset"), wxEmptyString, wxICON_WARNING | wxOK);
msg_dlg.ShowModal();
}
void MaxVolumetricSpeedWizard::on_cali_job_finished(wxString evt_data)