mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 16:03:14 +08:00
Fix legacy profile loading
CURA-4075
This commit is contained in:
parent
c5baabd8a3
commit
a425a1c51b
@ -151,6 +151,9 @@ class LegacyProfileReader(ProfileReader):
|
||||
data = profile.serialize()
|
||||
parser.read_string(data)
|
||||
parser["general"]["version"] = "1"
|
||||
if parser.has_section("values"):
|
||||
parser["settings"] = parser["values"]
|
||||
del parser["values"]
|
||||
stream = io.StringIO()
|
||||
parser.write(stream)
|
||||
data = stream.getvalue()
|
||||
|
Loading…
x
Reference in New Issue
Block a user