diff options
author | Ghostkeeper <rubend@tutanota.com> | 2021-05-18 12:08:06 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2021-05-18 12:08:06 +0300 |
commit | 9e136eb499b4b1767d3d645b4242f7a1cf8494d4 (patch) | |
tree | 89e0433b87375635dd11ebde26725a474b59670b /plugins/SliceInfoPlugin | |
parent | d4fa1cee4587bae9268f0886f06d98d92fb3579f (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-x | plugins/SliceInfoPlugin/SliceInfo.py | 2 |
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) |