🐛 Profile migration for extrusion length

Closes #4420
This commit is contained in:
Gina Häußge committed 2022-02-15 14:36:00 +01:00
1 parent bc83ae6c23
commit 195e1894d7
1 file changed
+6
+6
View File
@@ -610,6 +610,12 @@ class PrinterProfileManager:
profile["extruder"]["offsets"] = [(0.0, 0.0)]
modified = True
if "extruder" in profile and "defaultExtrusionLength" not in profile["extruder"]:
profile["extruder"]["defaultExtrusionLength"] = self.default["extruder"][
"defaultExtrusionLength"
]
modified = True
if "heatedChamber" not in profile:
profile["heatedChamber"] = False
modified = True