mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
FIX: add protection
Change-Id: I1587aa6e042f35fb1f17ae6f9041459f892fc942
This commit is contained in:
@@ -770,10 +770,12 @@ void CalibrationPASavePage::update(MachineObject* obj)
|
||||
}
|
||||
|
||||
bool CalibrationPASavePage::Show(bool show) {
|
||||
if (show) {
|
||||
if (curr_obj) {
|
||||
show_panels(m_cali_method, curr_obj->printer_type);
|
||||
sync_cali_result(curr_obj);
|
||||
}
|
||||
}
|
||||
return wxPanel::Show(show);
|
||||
}
|
||||
|
||||
@@ -1002,9 +1004,11 @@ bool CalibrationFlowX1SavePage::get_result(std::vector<std::pair<wxString, float
|
||||
}
|
||||
|
||||
bool CalibrationFlowX1SavePage::Show(bool show) {
|
||||
if (show) {
|
||||
if (curr_obj) {
|
||||
sync_cali_result(curr_obj->flow_ratio_results);
|
||||
}
|
||||
}
|
||||
return wxPanel::Show(show);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user