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.
This commit is contained in:
Ghostkeeper 2019-12-23 16:07:05 +01:00
parent 50f64ca696
commit a3c5435a1d
No known key found for this signature in database
GPG key ID: 37E2020986774393
2 changed files with 8 additions and 15 deletions

View file

@ -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()]