mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 03:55:55 +08:00
Remove start_layers_at_same_position from user profiles
There shouldn't be any since the setting was invisible, but just to be sure.
This commit is contained in:
parent
ce01f960b5
commit
7883cf1807
@ -14,6 +14,9 @@ _renamed_profiles = {"generic_pla_0.4_coarse": "jbo_generic_pla_0.4_coarse",
|
||||
"generic_petg_0.4_medium": "jbo_generic_petg_medium",
|
||||
}
|
||||
|
||||
_removed_settings = {
|
||||
"start_layers_at_same_position"
|
||||
}
|
||||
|
||||
## Upgrades configurations from the state they were in at version 4.2 to the
|
||||
# state they should be in at version 4.3.
|
||||
@ -47,6 +50,11 @@ class VersionUpgrade42to43(VersionUpgrade):
|
||||
# Update version number.
|
||||
parser["metadata"]["setting_version"] = "9"
|
||||
|
||||
if "values" in parser:
|
||||
for key in _removed_settings:
|
||||
if key in parser["values"]:
|
||||
del parser["values"][key]
|
||||
|
||||
result = io.StringIO()
|
||||
parser.write(result)
|
||||
return [filename], [result.getvalue()]
|
||||
|
Loading…
x
Reference in New Issue
Block a user