mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-21 13:47:51 -06:00
Fix upgrade from 26 to 27
Missing definition changes container.
This commit is contained in:
parent
99d653cea5
commit
579df7537b
1 changed files with 4 additions and 0 deletions
|
@ -153,6 +153,10 @@ class VersionUpgrade26to27(VersionUpgrade):
|
|||
if new_id is not None:
|
||||
parser.set("containers", key, new_id)
|
||||
|
||||
if "6" not in parser["containers"]:
|
||||
parser["containers"]["6"] = parser["containers"]["5"]
|
||||
parser["containers"]["5"] = "empty"
|
||||
|
||||
for each_section in ("general", "metadata"):
|
||||
if not parser.has_section(each_section):
|
||||
parser.add_section(each_section)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue