From 7897cd68c99392f1b6254b8d436b1d54c8565942 Mon Sep 17 00:00:00 2001 From: "zhimin.zeng" Date: Mon, 20 Jan 2025 10:48:08 +0800 Subject: [PATCH] FIX: timelapse should not enable when not supporting timelapse jira: STUDIO-9946 Change-Id: Ic8f369972c598c812e30d197927fa5fb63be133b --- src/slic3r/GUI/SelectMachine.cpp | 10 +++++----- src/slic3r/GUI/SyncAmsInfoDialog.cpp | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/slic3r/GUI/SelectMachine.cpp b/src/slic3r/GUI/SelectMachine.cpp index 0e5e8dd2a..5176b9604 100644 --- a/src/slic3r/GUI/SelectMachine.cpp +++ b/src/slic3r/GUI/SelectMachine.cpp @@ -983,11 +983,11 @@ void SelectMachineDialog::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 { @@ -1870,10 +1870,10 @@ void SelectMachineDialog::show_status(PrintDialogStatus status, std::vectorget_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("The current printer does not support timelapse in Traditional Mode when printing By-Object."); } } diff --git a/src/slic3r/GUI/SyncAmsInfoDialog.cpp b/src/slic3r/GUI/SyncAmsInfoDialog.cpp index d8f281fa9..67ff3ab00 100644 --- a/src/slic3r/GUI/SyncAmsInfoDialog.cpp +++ b/src/slic3r/GUI/SyncAmsInfoDialog.cpp @@ -190,11 +190,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 { @@ -2285,9 +2285,9 @@ void SyncAmsInfoDialog::show_status(PrintDialogStatus status, std::vectorget_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\"."); } }