mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 12:19:03 +08:00
Make sure definition_changes containers are not upgraded to stacks
This commit is contained in:
parent
c561395cf2
commit
5718ca7852
@ -19,6 +19,10 @@ class VersionUpgrade22to24(VersionUpgrade):
|
||||
|
||||
config = configparser.ConfigParser(interpolation = None)
|
||||
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")
|
||||
|
||||
container_list = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user