FIX: Duplicate traditional timelapse warnings

jira: STUDIO-10188
Change-Id: Ib391fc3b40dcf27d9c722fce2bae803dbc7fd5c9
This commit is contained in:
zhimin.zeng 2025-02-06 16:51:11 +08:00 committed by lane.wei
parent 74a4b1bd49
commit 05c3616b0d
1 changed files with 3 additions and 1 deletions

View File

@ -2121,6 +2121,7 @@ void SelectMachineDialog::on_ok_btn(wxCommandEvent &event)
PartPlate* plate = m_plater->get_partplate_list().get_curr_plate();
bool has_show_traditional_timelapse_waring = false;
for (auto warning : plate->get_slice_result()->warnings) {
if (warning.msg == BED_TEMP_TOO_HIGH_THAN_FILAMENT) {
if ((obj_->get_printer_is_enclosed())){
@ -2129,8 +2130,9 @@ void SelectMachineDialog::on_ok_btn(wxCommandEvent &event)
}
}
else if (warning.msg == NOT_SUPPORT_TRADITIONAL_TIMELAPSE) {
if (obj_->get_printer_arch() == PrinterArch::ARCH_I3 && (m_checkbox_list["timelapse"]->getValue() == "on")) {
if (!has_show_traditional_timelapse_waring && obj_->get_printer_arch() == PrinterArch::ARCH_I3 && (m_checkbox_list["timelapse"]->getValue() == "on")) {
confirm_text.push_back(ConfirmBeforeSendInfo(Plater::get_slice_warning_string(warning)));
has_show_traditional_timelapse_waring = true;
has_slice_warnings = true;
}
}