From f134105b17ff025e70db02072dde66cb31b0dc53 Mon Sep 17 00:00:00 2001 From: tao wang Date: Wed, 5 Jul 2023 11:14:24 +0800 Subject: [PATCH] ENH:calibration&disable selection of invalid preset Change-Id: If11aee0e86ae7d92ae283a701fd6ca3d75ec64e2 --- src/slic3r/GUI/CalibrationWizardPage.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/slic3r/GUI/CalibrationWizardPage.cpp b/src/slic3r/GUI/CalibrationWizardPage.cpp index 5483f2f3a9..039b00497b 100644 --- a/src/slic3r/GUI/CalibrationWizardPage.cpp +++ b/src/slic3r/GUI/CalibrationWizardPage.cpp @@ -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