FIX: update calibration status

Change-Id: I38a4340bf744b5aab29b95986ff0424250a179c5
This commit is contained in:
Stone Li 2022-10-19 12:04:36 +08:00 committed by Lane.Wei
parent 095243eff3
commit 23339c94ec
2 changed files with 4 additions and 3 deletions

View file

@ -158,7 +158,7 @@ void CalibrationDialog::on_dpi_changed(const wxRect &suggested_rect) {}
void CalibrationDialog::update_cali(MachineObject *obj)
{
if (!obj) return;
if (obj->is_in_calibration() || obj->is_calibration_done()) {
if (obj->is_calibration_running() || obj->is_calibration_done()) {
if (obj->is_calibration_done()) {
m_calibration_btn->Enable();
m_calibration_btn->SetLabel(_L("Completed"));