mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 20:57:49 -06:00
remove .curaproject from the extensions and just use .3mf
CURA-5650
This commit is contained in:
parent
49743d8e6c
commit
c48a5474f0
3 changed files with 3 additions and 13 deletions
|
@ -89,7 +89,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
MimeType(
|
MimeType(
|
||||||
name="application/x-curaproject+xml",
|
name="application/x-curaproject+xml",
|
||||||
comment="Cura Project File",
|
comment="Cura Project File",
|
||||||
suffixes=["curaproject.3mf"]
|
suffixes=["3mf"]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -726,8 +726,6 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
nodes = []
|
nodes = []
|
||||||
|
|
||||||
base_file_name = os.path.basename(file_name)
|
base_file_name = os.path.basename(file_name)
|
||||||
if base_file_name.endswith(".curaproject.3mf"):
|
|
||||||
base_file_name = base_file_name[:base_file_name.rfind(".curaproject.3mf")]
|
|
||||||
self.setWorkspaceName(base_file_name)
|
self.setWorkspaceName(base_file_name)
|
||||||
return nodes
|
return nodes
|
||||||
|
|
||||||
|
|
|
@ -18,11 +18,7 @@ catalog = i18nCatalog("cura")
|
||||||
|
|
||||||
|
|
||||||
def getMetaData() -> Dict:
|
def getMetaData() -> Dict:
|
||||||
# Workaround for osx not supporting double file extensions correctly.
|
workspace_extension = "3mf"
|
||||||
if Platform.isOSX():
|
|
||||||
workspace_extension = "3mf"
|
|
||||||
else:
|
|
||||||
workspace_extension = "curaproject.3mf"
|
|
||||||
|
|
||||||
metaData = {}
|
metaData = {}
|
||||||
if "3MFReader.ThreeMFReader" in sys.modules:
|
if "3MFReader.ThreeMFReader" in sys.modules:
|
||||||
|
|
|
@ -15,11 +15,7 @@ from UM.Platform import Platform
|
||||||
i18n_catalog = i18nCatalog("uranium")
|
i18n_catalog = i18nCatalog("uranium")
|
||||||
|
|
||||||
def getMetaData():
|
def getMetaData():
|
||||||
# Workarround for osx not supporting double file extensions correctly.
|
workspace_extension = "3mf"
|
||||||
if Platform.isOSX():
|
|
||||||
workspace_extension = "3mf"
|
|
||||||
else:
|
|
||||||
workspace_extension = "curaproject.3mf"
|
|
||||||
|
|
||||||
metaData = {}
|
metaData = {}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue