mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-01 00:04:27 +08:00
Merge pull request #18579 from Ultimaker/CURA-11715-reenter-mimetype-for-ucp
Mimetype introduction for ucp
This commit is contained in:
commit
e8e106b9e9
@ -75,9 +75,9 @@ class UCPDialog(QObject):
|
|||||||
device.requestWrite(
|
device.requestWrite(
|
||||||
nodes,
|
nodes,
|
||||||
file_name,
|
file_name,
|
||||||
["application/vnd.ms-package.3dmanufacturing-3dmodel+xml"],
|
["application/x-ucp"],
|
||||||
workspace_handler,
|
workspace_handler,
|
||||||
preferred_mimetype_list="application/vnd.ms-package.3dmanufacturing-3dmodel+xml"
|
preferred_mimetype_list="application/x-ucp"
|
||||||
)
|
)
|
||||||
except OutputDeviceError.UserCanceledError:
|
except OutputDeviceError.UserCanceledError:
|
||||||
self._onRejected()
|
self._onRejected()
|
||||||
|
@ -32,6 +32,12 @@ def getMetaData():
|
|||||||
"description": i18n_catalog.i18nc("@item:inlistbox", "3MF file"),
|
"description": i18n_catalog.i18nc("@item:inlistbox", "3MF file"),
|
||||||
"mime_type": "application/vnd.ms-package.3dmanufacturing-3dmodel+xml",
|
"mime_type": "application/vnd.ms-package.3dmanufacturing-3dmodel+xml",
|
||||||
"mode": ThreeMFWriter.ThreeMFWriter.OutputMode.BinaryMode
|
"mode": ThreeMFWriter.ThreeMFWriter.OutputMode.BinaryMode
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"extension": "3mf",
|
||||||
|
"description": i18n_catalog.i18nc("@item:inlistbox", "Universal Cura Project"),
|
||||||
|
"mime_type": "application/x-ucp",
|
||||||
|
"mode": ThreeMFWriter.ThreeMFWriter.OutputMode.BinaryMode
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -39,9 +45,15 @@ def getMetaData():
|
|||||||
"output": [
|
"output": [
|
||||||
{
|
{
|
||||||
"extension": workspace_extension,
|
"extension": workspace_extension,
|
||||||
"description": i18n_catalog.i18nc("@item:inlistbox", "3MF Project file"),
|
"description": i18n_catalog.i18nc("@item:inlistbox", "Cura Project 3MF file"),
|
||||||
"mime_type": "application/vnd.ms-package.3dmanufacturing-3dmodel+xml",
|
"mime_type": "application/vnd.ms-package.3dmanufacturing-3dmodel+xml",
|
||||||
"mode": ThreeMFWorkspaceWriter.ThreeMFWorkspaceWriter.OutputMode.BinaryMode
|
"mode": ThreeMFWorkspaceWriter.ThreeMFWorkspaceWriter.OutputMode.BinaryMode
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"extension": "3mf",
|
||||||
|
"description": i18n_catalog.i18nc("@item:inlistbox", "Universal Cura Project"),
|
||||||
|
"mime_type": "application/x-ucp",
|
||||||
|
"mode": ThreeMFWorkspaceWriter.ThreeMFWorkspaceWriter.OutputMode.BinaryMode
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user