ENH:calibration&disable selection of invalid preset

Change-Id: If11aee0e86ae7d92ae283a701fd6ca3d75ec64e2
This commit is contained in:
tao wang 2023-07-05 11:14:24 +08:00 committed by Lane.Wei
parent bc0273d734
commit f134105b17

View file

@ -289,6 +289,13 @@ void FilamentComboBox::load_tray_from_ams(int id, DynamicPrintConfig& tray)
if (!m_comboBox->is_compatible_with_printer()) {
SetValue(false);
}
if (m_radioBox)
m_radioBox->Enable(m_comboBox->is_compatible_with_printer());
if (m_checkBox)
m_checkBox->Enable(m_comboBox->is_compatible_with_printer());
}
// check compatibility