FIX: fix the use of PA and flow to push messages

jira: STUDIO-11875
Change-Id: I4183ff5f3b297c5c1136fedfd22442a326bc400b
(cherry picked from commit f2314f8f57ca2786332807816ade9e1d6efdfae5)
This commit is contained in:
zhimin.zeng
2025-04-25 17:06:09 +08:00
committed by Noisyfox
parent 6adb7da9ea
commit f3610897c6
3 changed files with 8 additions and 5 deletions

View File

@@ -2368,14 +2368,14 @@ void SelectMachineDialog::update_option_opts(MachineObject *obj)
m_checkbox_list["nozzle_offset_cali"]->Show(obj->is_support_nozzle_offset_cali);
/*flow_cali*/
if (obj->is_support_flow_calibration) {
if (obj->is_support_pa_calibration) {
if (obj->is_support_auto_flow_calibration && can_support_auto_cali()) {
m_checkbox_list["flow_cali"]->update_options(ops_auto, _L("This process determines the dynamic flow values to improve overall print quality.\n*Automatic mode: Skip if the filament was calibrated recently."));
} else {
m_checkbox_list["flow_cali"]->update_options(ops_no_auto, _L("This process determines the dynamic flow values to improve overall print quality."));
}
}
m_checkbox_list["flow_cali"]->Show(obj->is_support_flow_calibration);
m_checkbox_list["flow_cali"]->Show(obj->is_support_pa_calibration);
update_options_layout();
}