FIX: update the flow calibration options

jira: [STUDIO-10784]
Change-Id: I75c5319daf01da52ae521632d71d32813bcbb32f
(cherry picked from commit 57245bd45620cffdcfce8ef623d79b284d60b3eb)
This commit is contained in:
xin.zhang authored and Noisyfox committed 2025-09-18 10:18:35 +08:00
1 parent 697dd13875
commit b0943a2d0b
11 files changed
+30 -16

No files matched your search

+13 -10
View File
@@ -985,27 +985,34 @@ void SelectMachineDialog::update_select_layout(MachineObject *obj)
m_checkbox_list["nozzle_offset_cali"]->Show();
m_checkbox_list["nozzle_offset_cali"]->update_options(ops_auto);
m_checkbox_list["bed_leveling"]->update_options(ops_auto);
m_checkbox_list["flow_cali"]->update_options(ops_auto);
m_checkbox_list["nozzle_offset_cali"]->setValue("auto");
m_checkbox_list["bed_leveling"]->setValue("auto");
m_checkbox_list["flow_cali"]->setValue("auto");
}
else {
m_checkbox_list["bed_leveling"]->update_options(ops_no_auto);
m_checkbox_list["flow_cali"]->update_options(ops_auto);
if (config && config->get("print", "bed_leveling") == "0") {
m_checkbox_list["bed_leveling"]->setValue("off");
} else {
m_checkbox_list["bed_leveling"]->setValue("on");
}
}
if (config && config->get("print", "flow_cali") == "0") {
m_checkbox_list["flow_cali"]->setValue("off");
if (obj->is_support_flow_calibration) {
if (obj->is_support_auto_flow_calibration) {
m_checkbox_list["flow_cali"]->update_options(ops_auto);
m_checkbox_list["flow_cali"]->setValue("auto");
} else {
m_checkbox_list["flow_cali"]->setValue("on");
m_checkbox_list["flow_cali"]->update_options(ops_no_auto);
if (config && config->get("print", "flow_cali") == "0") {
m_checkbox_list["flow_cali"]->setValue("off");
} else {
m_checkbox_list["flow_cali"]->setValue("on");
}
}
m_checkbox_list["flow_cali"]->Show();
}
update_timelapse_enable_status();
@@ -1016,10 +1023,6 @@ void SelectMachineDialog::update_select_layout(MachineObject *obj)
m_checkbox_list["timelapse"]->setValue("on");
}
if (obj && obj->is_support_auto_flow_calibration) {
m_checkbox_list["flow_cali"]->Show();
}
if (obj && obj->is_support_auto_leveling) {
m_checkbox_list["bed_leveling"]->Show();
}