mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-14 10:35:53 +08:00
FIX: add protection
Change-Id: I1587aa6e042f35fb1f17ae6f9041459f892fc942
This commit is contained in:
parent
bcae2a7298
commit
c344308b88
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user