Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2021-05-18 12:08:06 +0300
committerGhostkeeper <rubend@tutanota.com>2021-05-18 12:08:06 +0300
commit9e136eb499b4b1767d3d645b4242f7a1cf8494d4 (patch)
tree89e0433b87375635dd11ebde26725a474b59670b /plugins/SliceInfoPlugin
parentd4fa1cee4587bae9268f0886f06d98d92fb3579f (diff)
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.
Diffstat (limited to 'plugins/SliceInfoPlugin')
-rwxr-xr-xplugins/SliceInfoPlugin/SliceInfo.py2
1 files changed, 1 insertions, 1 deletions
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)