FIX: Flow calibration stage incorrect when switching printers

Jira: 6093
Change-Id: I41f1ac10ac9422ac808eab3254f32ea14a0d3b76
This commit is contained in:
zhimin.zeng 2024-01-24 16:06:21 +08:00 committed by Lane.Wei
parent f10b585131
commit ce09b062d7
1 changed files with 2 additions and 0 deletions

View File

@ -131,10 +131,12 @@ void CaliPresetCaliStagePanel::set_flow_ratio_value(float flow_ratio)
void CaliPresetCaliStagePanel::set_flow_ratio_calibration_type(FlowRatioCalibrationType type) {
if (type == COMPLETE_CALIBRATION) {
m_complete_radioBox->SetValue(true);
m_stage = CaliPresetStage::CALI_MANUAL_STAGE_1;
input_panel->Hide();
}
else if (type == FINE_CALIBRATION) {
m_fine_radioBox->SetValue(true);
m_stage = CaliPresetStage::CALI_MANUAL_STAGE_2;
input_panel->Show();
}
GetParent()->Layout();