From 9e136eb499b4b1767d3d645b4242f7a1cf8494d4 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 18 May 2021 11:08:06 +0200 Subject: [PATCH] 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. --- plugins/SliceInfoPlugin/SliceInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/SliceInfoPlugin/SliceInfo.py b/plugins/SliceInfoPlugin/SliceInfo.py index 977b9b809b..5ead422d0a 100755 --- a/plugins/SliceInfoPlugin/SliceInfo.py +++ b/plugins/SliceInfoPlugin/SliceInfo.py @@ -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)