FIX: auto calibrate sync result

Change-Id: Icd3bf386d2e57b7d23517548dd539eb778ce6d20
This commit is contained in:
liz.li 2023-07-05 16:47:39 +08:00 committed by Lane.Wei
parent fe5312af46
commit d48101887e
4 changed files with 13 additions and 2 deletions

View file

@ -764,8 +764,10 @@ void CalibrationPASavePage::update(MachineObject* obj)
}
bool CalibrationPASavePage::Show(bool show) {
if (curr_obj)
if (curr_obj) {
show_panels(m_cali_method, curr_obj->printer_type);
sync_cali_result(curr_obj);
}
return wxPanel::Show(show);
}
@ -992,6 +994,13 @@ bool CalibrationFlowX1SavePage::get_result(std::vector<std::pair<wxString, float
}
}
bool CalibrationFlowX1SavePage::Show(bool show) {
if (curr_obj) {
sync_cali_result(curr_obj->flow_ratio_results);
}
return wxPanel::Show(show);
}
CalibrationFlowCoarseSavePage::CalibrationFlowCoarseSavePage(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style)
: CalibrationCommonSavePage(parent, id, pos, size, style)
{