mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 22:43:15 +08:00
Fix upgrade from 26 to 27
Missing definition changes container.
This commit is contained in:
parent
99d653cea5
commit
579df7537b
@ -153,6 +153,10 @@ class VersionUpgrade26to27(VersionUpgrade):
|
|||||||
if new_id is not None:
|
if new_id is not None:
|
||||||
parser.set("containers", key, new_id)
|
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"):
|
for each_section in ("general", "metadata"):
|
||||||
if not parser.has_section(each_section):
|
if not parser.has_section(each_section):
|
||||||
parser.add_section(each_section)
|
parser.add_section(each_section)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user