Improvements in detection of the XL printer model.

This commit is contained in:
Vojtech Bubnik 2023-03-03 14:04:28 +01:00
parent 9a0ae2cdc3
commit f600ea2c5b
2 changed files with 2 additions and 2 deletions

View File

@ -4685,7 +4685,7 @@ bool is_XL_printer(const DynamicPrintConfig &cfg)
auto *printer_model = cfg.opt<ConfigOptionString>("printer_model");
if (printer_model)
ret = boost::algorithm::contains(printer_model->value, ALIGN_ONLY_FOR);
ret = boost::algorithm::starts_with(printer_model->value, ALIGN_ONLY_FOR);
return ret;
}

View File

@ -6983,7 +6983,7 @@ PlaterAfterLoadAutoArrange::PlaterAfterLoadAutoArrange()
Plater* plater = wxGetApp().plater();
m_enabled = plater->model().objects.empty() &&
plater->printer_technology() == ptFFF &&
plater->fff_print().config().printer_model.value == "XL";
is_XL_printer(*plater->config());
}
PlaterAfterLoadAutoArrange::~PlaterAfterLoadAutoArrange()