From fcf9939e4ffd9b5c732de629d272f099fa9c73a6 Mon Sep 17 00:00:00 2001 From: David Kocik Date: Wed, 1 Mar 2023 12:53:25 +0100 Subject: [PATCH] Allow XL for PrusaLink --- src/slic3r/GUI/PhysicalPrinterDialog.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/slic3r/GUI/PhysicalPrinterDialog.cpp b/src/slic3r/GUI/PhysicalPrinterDialog.cpp index 83c7e592a..ed68a35e9 100644 --- a/src/slic3r/GUI/PhysicalPrinterDialog.cpp +++ b/src/slic3r/GUI/PhysicalPrinterDialog.cpp @@ -522,16 +522,20 @@ void PhysicalPrinterDialog::update_host_type(bool printer_change) { if (m_presets.empty()) return; + bool all_presets_are_from_mk3_family = true; for (PresetForPrinter* prstft : m_presets) { std::string preset_name = prstft->get_preset_name(); if (Preset* preset = wxGetApp().preset_bundle->printers.find_preset(preset_name)) { std::string model_id = preset->config.opt_string("printer_model"); - auto model_supports_prusalink = [](const std::string &model) { - return model.size() >= 3 && - ((boost::starts_with(model, "MK") && model[2] > '2' && model[2] <= '9') || - boost::starts_with(model, "MINI")); + auto model_supports_prusalink = [](const std::string& model) { + return model.size() >= 2 && + ((boost::starts_with(model, "MK") && model[2] > '2' && model[2] <= '9') + || boost::starts_with(model, "MINI") + || boost::starts_with(model, "MK2.5") + || boost::starts_with(model, "XL") + ); }; if (preset->vendor) { if (preset->vendor->name == "Prusa Research") {