FIX: timelapse should not enable when not supporting timelapse

jira: STUDIO-9946
Change-Id: Ic8f369972c598c812e30d197927fa5fb63be133b
(cherry picked from commit 7897cd68c99392f1b6254b8d436b1d54c8565942)
This commit is contained in:
zhimin.zeng 2025-01-20 10:48:08 +08:00 committed by Noisyfox
parent 6cbdfe76c8
commit e89c217da8
2 changed files with 10 additions and 10 deletions

View file

@ -192,11 +192,11 @@ void SyncAmsInfoDialog::update_select_layout(MachineObject *obj)
} else {
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") {
m_checkbox_list["timelapse"]->setValue("off");
} else {
@ -2289,9 +2289,9 @@ void SyncAmsInfoDialog::show_status(PrintDialogStatus status, std::vector<wxStri
PartPlate *plate = m_plater->get_partplate_list().get_curr_plate();
for (auto warning : plate->get_slice_result()->warnings) {
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.");
} 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\".");
}
}