FIX: PA profile is not match correct in mac environment

jira: none
Change-Id: I39ebbb3de3f174a3072ab0511d2f6c9265264337
This commit is contained in:
zhimin.zeng 2024-10-25 14:44:49 +08:00 committed by Lane.Wei
parent 6360fb80be
commit c466a40c04
1 changed files with 8 additions and 0 deletions

View File

@ -1162,7 +1162,11 @@ void AMSMaterialsSetting::on_select_filament(wxCommandEvent &evt)
}
}
else {
#ifdef __APPLE__
cali_select_idx = get_cali_index(m_comboBox_filament->GetValue().ToStdString());
#else
cali_select_idx = get_cali_index(m_comboBox_filament->GetLabel().ToStdString());
#endif
m_comboBox_cali_result->SetSelection(cali_select_idx);
}
}
@ -1180,7 +1184,11 @@ void AMSMaterialsSetting::on_select_filament(wxCommandEvent &evt)
}
}
else {
#ifdef __APPLE__
cali_select_idx = get_cali_index(m_comboBox_filament->GetValue().ToStdString());
#else
cali_select_idx = get_cali_index(m_comboBox_filament->GetLabel().ToStdString());
#endif
m_comboBox_cali_result->SetSelection(cali_select_idx);
}
}