Serialise MIME type name rather than entire MIME type

So we don't get the bracket syntax from its repr, just the MIME type itself.

Contributes to issue CURA-8232.
This commit is contained in:
Ghostkeeper 2021-05-18 11:08:06 +02:00
parent d4fa1cee45
commit 9e136eb499
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -232,7 +232,7 @@ class SliceInfo(QObject, Extension):
if node.source_mime_type is None:
model["mime_type"] = ""
else:
model["mime_type"] = node.source_mime_type
model["mime_type"] = node.source_mime_type.name
data["models"].append(model)