FIX: timelapse should not enable when not supporting timelapse

jira: STUDIO-9946
Change-Id: Ic8f369972c598c812e30d197927fa5fb63be133b
This commit is contained in:
zhimin.zeng 2025-01-20 10:48:08 +08:00 committed by lane.wei
parent 3bef21933f
commit 7897cd68c9
2 changed files with 10 additions and 10 deletions

View File

@ -983,11 +983,11 @@ void SelectMachineDialog::update_select_layout(MachineObject *obj)
} else { } else {
m_checkbox_list["flow_cali"]->setValue("on"); m_checkbox_list["flow_cali"]->setValue("on");
} }
update_timelapse_enable_status();
update_flow_cali_check(obj);
} }
update_timelapse_enable_status();
update_flow_cali_check(obj);
if (config && config->get("print", "timelapse") == "0") { if (config && config->get("print", "timelapse") == "0") {
m_checkbox_list["timelapse"]->setValue("off"); m_checkbox_list["timelapse"]->setValue("off");
} else { } else {
@ -1870,10 +1870,10 @@ void SelectMachineDialog::show_status(PrintDialogStatus status, std::vector<wxSt
PartPlate *plate = m_plater->get_partplate_list().get_curr_plate(); PartPlate *plate = m_plater->get_partplate_list().get_curr_plate();
for (auto warning : plate->get_slice_result()->warnings) { for (auto warning : plate->get_slice_result()->warnings) {
if (warning.msg == NOT_GENERATE_TIMELAPSE) { if (warning.msg == NOT_GENERATE_TIMELAPSE) {
if (warning.error_code == "1001C001") { if (warning.error_code == "10014001") {
msg_text = _L("When enable spiral vase mode, machines with I3 structure will not generate timelapse videos."); msg_text = _L("When enable spiral vase mode, machines with I3 structure will not generate timelapse videos.");
} }
else if (warning.error_code == "1001C002") { else if (warning.error_code == "10014002") {
msg_text = _L("The current printer does not support timelapse in Traditional Mode when printing By-Object."); msg_text = _L("The current printer does not support timelapse in Traditional Mode when printing By-Object.");
} }
} }

View File

@ -190,11 +190,11 @@ void SyncAmsInfoDialog::update_select_layout(MachineObject *obj)
} else { } else {
m_checkbox_list["flow_cali"]->setValue("on"); m_checkbox_list["flow_cali"]->setValue("on");
} }
update_timelapse_enable_status();
update_flow_cali_check(obj);
} }
update_timelapse_enable_status();
update_flow_cali_check(obj);
if (config && config->get("print", "timelapse") == "0") { if (config && config->get("print", "timelapse") == "0") {
m_checkbox_list["timelapse"]->setValue("off"); m_checkbox_list["timelapse"]->setValue("off");
} else { } else {
@ -2285,9 +2285,9 @@ void SyncAmsInfoDialog::show_status(PrintDialogStatus status, std::vector<wxStri
PartPlate *plate = m_plater->get_partplate_list().get_curr_plate(); PartPlate *plate = m_plater->get_partplate_list().get_curr_plate();
for (auto warning : plate->get_slice_result()->warnings) { for (auto warning : plate->get_slice_result()->warnings) {
if (warning.msg == NOT_GENERATE_TIMELAPSE) { if (warning.msg == NOT_GENERATE_TIMELAPSE) {
if (warning.error_code == "1001C001") { if (warning.error_code == "10014001") {
msg_text = _L("When enable spiral vase mode, machines with I3 structure will not generate timelapse videos."); msg_text = _L("When enable spiral vase mode, machines with I3 structure will not generate timelapse videos.");
} else if (warning.error_code == "1001C002") { } else if (warning.error_code == "10014002") {
msg_text = _L("Timelapse is not supported because Print sequence is set to \"By object\"."); msg_text = _L("Timelapse is not supported because Print sequence is set to \"By object\".");
} }
} }