ENH: update Send to print dialog

jira: [STUDIO-11230][STUDIO-11260][STUDIO-11259]
Change-Id: I6fdbeebf2a491f354c122eb35e5858bd6e72591c
(cherry picked from commit f3992d3e9420e0bd4987c6ca4cfe96f9f35bdcd1)
This commit is contained in:
xin.zhang
2025-04-02 10:53:33 +08:00
committed by Noisyfox
parent 0dfba478df
commit 94fed58ff9
3 changed files with 144 additions and 159 deletions

View File

@@ -128,13 +128,13 @@ void SyncAmsInfoDialog::update_select_layout(MachineObject *obj)
if (obj->is_enable_np) {
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["nozzle_offset_cali"]->update_options(ops_auto, wxEmptyString);
m_checkbox_list["bed_leveling"]->update_options(ops_auto, wxEmptyString);
m_checkbox_list["nozzle_offset_cali"]->setValue("auto");
m_checkbox_list["bed_leveling"]->setValue("auto");
} else {
m_checkbox_list["bed_leveling"]->update_options(ops_no_auto);
m_checkbox_list["bed_leveling"]->update_options(ops_no_auto, wxEmptyString);
if (config && config->get("print", "bed_leveling") == "0") {
m_checkbox_list["bed_leveling"]->setValue("off");