From 116fd0526b80aec4ead5433ede905e20557cbff1 Mon Sep 17 00:00:00 2001
From: Vojtech Bubnik <bubnikv@gmail.com>
Date: Tue, 21 Sep 2021 12:49:18 +0200
Subject: [PATCH] Enabling PrusaLink in physcal printers dialog for MINI.

---
 src/slic3r/GUI/PhysicalPrinterDialog.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/slic3r/GUI/PhysicalPrinterDialog.cpp b/src/slic3r/GUI/PhysicalPrinterDialog.cpp
index 519abab43..22ced12e4 100644
--- a/src/slic3r/GUI/PhysicalPrinterDialog.cpp
+++ b/src/slic3r/GUI/PhysicalPrinterDialog.cpp
@@ -532,9 +532,9 @@ void PhysicalPrinterDialog::update_host_type(bool printer_change)
                 const std::vector<VendorProfile::PrinterModel>& models = preset->vendor->models;
                 auto it = std::find_if(models.begin(), models.end(),
                     [model_id](const VendorProfile::PrinterModel& model) { return model.id == model_id; });
-                if (it != models.end() && it->family == "MK3")
+                if (it != models.end() && (it->family == "MK3" || it->family == "MINI"))
                     continue;
-            } else if (!preset->vendor && model_id.rfind("MK3", 0) == 0) {
+            } else if (!preset->vendor && (boost::ends_with(model_id, "MK3") || boost::ends_with(model_id, "MINI"))) {
                 continue;
             }