FIX: Add protection for cali (for crash)

Jira: 4434
Change-Id: I2b82c68b81dd0c65fe2188ad6824f5f2dda4c8a6
This commit is contained in:
zhimin.zeng 2023-09-26 19:30:17 +08:00 committed by Lane.Wei
parent 90fe113341
commit aed361805a
1 changed files with 3 additions and 0 deletions

View File

@ -1139,6 +1139,9 @@ void CalibrationPresetPage::update_combobox_filaments(MachineObject* obj)
{
if (!obj) return;
if (!obj->is_info_ready())
return;
//step 1: update combobox filament list
float nozzle_value = get_nozzle_value();
obj->cali_selected_nozzle_dia = nozzle_value;