mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 16:59:01 +08:00
Enable the setting version update to 18 in VersionUpgrade49to50
Contributes to CURA-7683 and CURA-7656
This commit is contained in:
parent
5bca31e37a
commit
1416466f05
@ -28,8 +28,8 @@ class VersionUpgrade49to50(VersionUpgrade):
|
||||
parser = configparser.ConfigParser(interpolation = None)
|
||||
parser.read_string(serialized)
|
||||
|
||||
# Update version number. Disabled until we ensure that 18 will be the 5.0 setting version number
|
||||
# parser["metadata"]["setting_version"] = "18"
|
||||
# Update version number.
|
||||
parser["metadata"]["setting_version"] = "18"
|
||||
|
||||
# Remove deleted settings from the visible settings list.
|
||||
if "general" in parser and "visible_settings" in parser["general"]:
|
||||
@ -59,8 +59,8 @@ class VersionUpgrade49to50(VersionUpgrade):
|
||||
parser = configparser.ConfigParser(interpolation = None, comment_prefixes = ())
|
||||
parser.read_string(serialized)
|
||||
|
||||
# Update version number. Disabled until we ensure that 18 will be the 5.0 setting version number
|
||||
# parser["metadata"]["setting_version"] = "18"
|
||||
# Update version number.
|
||||
parser["metadata"]["setting_version"] = "18"
|
||||
|
||||
if "values" in parser:
|
||||
# Remove deleted settings from the instance containers.
|
||||
@ -88,10 +88,10 @@ class VersionUpgrade49to50(VersionUpgrade):
|
||||
parser = configparser.ConfigParser(interpolation = None)
|
||||
parser.read_string(serialized)
|
||||
|
||||
# Update version number. Disabled until we ensure that 18 will be the 5.0 setting version number
|
||||
# Update version number.
|
||||
if "metadata" not in parser:
|
||||
parser["metadata"] = {}
|
||||
# parser["metadata"]["setting_version"] = "18"
|
||||
parser["metadata"]["setting_version"] = "18"
|
||||
|
||||
result = io.StringIO()
|
||||
parser.write(result)
|
||||
|
Loading…
x
Reference in New Issue
Block a user