diff options
author | jelle Spijker <j.spijker@ultimaker.com> | 2020-06-30 16:10:26 +0300 |
---|---|---|
committer | Jelle Spijker <spijker.jelle@gmail.com> | 2020-06-30 16:10:26 +0300 |
commit | d31c7407ee32ce12d364c4d3ab453871fb88e10f (patch) | |
tree | 22a2742993761b6278fdeb6ea16a03fd0002166d /plugins/VersionUpgrade | |
parent | 8af4e0d05ad441f2de597b5e78afeff115c70a37 (diff) |
Delete removed settings from profiles when upgrading
Part of CURA-7199
Diffstat (limited to 'plugins/VersionUpgrade')
-rw-r--r-- | plugins/VersionUpgrade/VersionUpgrade462to47/VersionUpgrade462to47.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade462to47/VersionUpgrade462to47.py b/plugins/VersionUpgrade/VersionUpgrade462to47/VersionUpgrade462to47.py index e5fa05bd24..a167c9917e 100644 --- a/plugins/VersionUpgrade/VersionUpgrade462to47/VersionUpgrade462to47.py +++ b/plugins/VersionUpgrade/VersionUpgrade462to47/VersionUpgrade462to47.py @@ -91,6 +91,9 @@ class VersionUpgrade462to47(VersionUpgrade): correction = " + skin_line_width * (1.0 - ironing_flow / 100) / 2" ironing_inset = "=(" + ironing_inset + ")" + correction parser["values"]["ironing_inset"] = ironing_inset + + for removed in set(parser["values"].keys()).intersection(_removed_settings): + del parser["values"][removed] # Check renamed definitions if "definition" in parser["general"] and parser["general"]["definition"] in _RENAMED_DEFINITION_DICT: |