mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 23:38:59 +08:00
Added workaround for curaproject.3mf extensions not being handled on osx
CURA-3130
This commit is contained in:
parent
6baff7bbb2
commit
8676f3db40
@ -4,10 +4,16 @@
|
|||||||
from . import ThreeMFReader
|
from . import ThreeMFReader
|
||||||
from . import ThreeMFWorkspaceReader
|
from . import ThreeMFWorkspaceReader
|
||||||
from UM.i18n import i18nCatalog
|
from UM.i18n import i18nCatalog
|
||||||
|
import UM.Platform
|
||||||
catalog = i18nCatalog("cura")
|
catalog = i18nCatalog("cura")
|
||||||
|
|
||||||
|
|
||||||
def getMetaData():
|
def getMetaData():
|
||||||
|
# Workarround for osx not supporting double file extensions correclty.
|
||||||
|
if UM.Platform.isOSX():
|
||||||
|
workspace_extension = "3mf"
|
||||||
|
else:
|
||||||
|
workspace_extension = "curaproject.3mf"
|
||||||
return {
|
return {
|
||||||
"plugin": {
|
"plugin": {
|
||||||
"name": catalog.i18nc("@label", "3MF Reader"),
|
"name": catalog.i18nc("@label", "3MF Reader"),
|
||||||
@ -25,7 +31,7 @@ def getMetaData():
|
|||||||
"workspace_reader":
|
"workspace_reader":
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"extension": "curaproject.3mf",
|
"extension": workspace_extension,
|
||||||
"description": catalog.i18nc("@item:inlistbox", "3MF File")
|
"description": catalog.i18nc("@item:inlistbox", "3MF File")
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user