diff --git a/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py b/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py index 4383b50f4e..d5f38585c9 100644 --- a/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py +++ b/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py @@ -83,7 +83,8 @@ class Profile: if self._weight: config.set("general", "weight", self._weight) if self._machine_type_id: - config.set("general", "definition", self._machine_type_id) + translated_machine = VersionUpgrade21to22.VersionUpgrade21to22.VersionUpgrade21to22.translatePrinters([self._machine_type_id])[0] + config.set("general", "definition", translated_machine) else: config.set("general", "definition", "fdmprinter") if self._machine_variant_name: diff --git a/plugins/VersionUpgrade/VersionUpgrade21to22/VersionUpgrade21to22.py b/plugins/VersionUpgrade/VersionUpgrade21to22/VersionUpgrade21to22.py index a06369f301..8a166ba160 100644 --- a/plugins/VersionUpgrade/VersionUpgrade21to22/VersionUpgrade21to22.py +++ b/plugins/VersionUpgrade/VersionUpgrade21to22/VersionUpgrade21to22.py @@ -58,6 +58,12 @@ class VersionUpgrade21to22(VersionUpgrade): return None return profile.export() + @staticmethod + def translatePrinters(printers): + for index, printer in enumerate(printers): + if printer == "ultimaker2plus": + printers[index] = "ultimaker2_plus" + ## Updates settings for the change from Cura 2.1 to 2.2. # # The keys and values of settings are changed to what they should be in