FIX: Duplicate traditional timelapse warnings
jira: STUDIO-10188 Change-Id: Ib391fc3b40dcf27d9c722fce2bae803dbc7fd5c9
This commit is contained in:
parent
74a4b1bd49
commit
05c3616b0d
|
@ -2121,6 +2121,7 @@ void SelectMachineDialog::on_ok_btn(wxCommandEvent &event)
|
||||||
|
|
||||||
PartPlate* plate = m_plater->get_partplate_list().get_curr_plate();
|
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) {
|
for (auto warning : plate->get_slice_result()->warnings) {
|
||||||
if (warning.msg == BED_TEMP_TOO_HIGH_THAN_FILAMENT) {
|
if (warning.msg == BED_TEMP_TOO_HIGH_THAN_FILAMENT) {
|
||||||
if ((obj_->get_printer_is_enclosed())){
|
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) {
|
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)));
|
confirm_text.push_back(ConfirmBeforeSendInfo(Plater::get_slice_warning_string(warning)));
|
||||||
|
has_show_traditional_timelapse_waring = true;
|
||||||
has_slice_warnings = true;
|
has_slice_warnings = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue