From 8676f3db404b7c815fae79bdb96b27497ff90af8 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 16 Dec 2016 09:36:40 +0100 Subject: [PATCH] Added workaround for curaproject.3mf extensions not being handled on osx CURA-3130 --- plugins/3MFReader/__init__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/3MFReader/__init__.py b/plugins/3MFReader/__init__.py index 617bdd594c..3e05cb8dc7 100644 --- a/plugins/3MFReader/__init__.py +++ b/plugins/3MFReader/__init__.py @@ -4,10 +4,16 @@ from . import ThreeMFReader from . import ThreeMFWorkspaceReader from UM.i18n import i18nCatalog +import UM.Platform catalog = i18nCatalog("cura") def getMetaData(): + # Workarround for osx not supporting double file extensions correclty. + if UM.Platform.isOSX(): + workspace_extension = "3mf" + else: + workspace_extension = "curaproject.3mf" return { "plugin": { "name": catalog.i18nc("@label", "3MF Reader"), @@ -25,7 +31,7 @@ def getMetaData(): "workspace_reader": [ { - "extension": "curaproject.3mf", + "extension": workspace_extension, "description": catalog.i18nc("@item:inlistbox", "3MF File") } ]