mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-05 16:51:12 -07:00
Merge pull request #1242 from fieldOfView/fix_definition_changes_upgrade
Make sure definition_changes containers are not upgraded to stacks
This commit is contained in:
commit
a6194aa2cf
1 changed files with 4 additions and 0 deletions
|
|
@ -19,6 +19,10 @@ class VersionUpgrade22to24(VersionUpgrade):
|
||||||
|
|
||||||
config = configparser.ConfigParser(interpolation = None)
|
config = configparser.ConfigParser(interpolation = None)
|
||||||
config.read_string(serialised) # Read the input string as config file.
|
config.read_string(serialised) # Read the input string as config file.
|
||||||
|
if config.get("metadata", "type") == "definition_changes":
|
||||||
|
# This is not a container stack, don't upgrade it here
|
||||||
|
return
|
||||||
|
|
||||||
config.set("general", "version", "3")
|
config.set("general", "version", "3")
|
||||||
|
|
||||||
container_list = []
|
container_list = []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue