diff options
author | Ghostkeeper <rubend@tutanota.com> | 2019-12-23 18:07:05 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2019-12-23 18:22:17 +0300 |
commit | a3c5435a1de9a4274b493bb8a811219b389ca596 (patch) | |
tree | 4bab5c26e831276f5e16e5b9fd15e4454ab5acb1 /plugins/VersionUpgrade/VersionUpgrade44to45 | |
parent | 50f64ca696caa0b855f64d943b20c4ada18a2a30 (diff) |
Remove support_tree_wall_thickness
This setting will not be automatically translated to support_wall_thickness if it's overwritten, because that would require knowing the line width and we don't know that here. So it's hard to do.
Contributes to issue CURA-7077.
Diffstat (limited to 'plugins/VersionUpgrade/VersionUpgrade44to45')
-rw-r--r-- | plugins/VersionUpgrade/VersionUpgrade44to45/VersionUpgrade44to45.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade44to45/VersionUpgrade44to45.py b/plugins/VersionUpgrade/VersionUpgrade44to45/VersionUpgrade44to45.py index 35861c9486..3ae25e05ae 100644 --- a/plugins/VersionUpgrade/VersionUpgrade44to45/VersionUpgrade44to45.py +++ b/plugins/VersionUpgrade/VersionUpgrade44to45/VersionUpgrade44to45.py @@ -11,6 +11,10 @@ _merged_settings = { "support_wall_count": "support_tree_wall_count" } +_removed_settings = { + "support_tree_wall_thickness" +} + class VersionUpgrade44to45(VersionUpgrade): def getCfgVersion(self, serialised: str) -> int: parser = configparser.ConfigParser(interpolation = None) @@ -55,6 +59,10 @@ class VersionUpgrade44to45(VersionUpgrade): parser["values"][preferred] = parser["values"][removed] del parser["values"][removed] + for removed in _removed_settings: + if removed in parser["values"]: + del parser["values"][removed] + result = io.StringIO() parser.write(result) return [filename], [result.getvalue()] |