Allowing profile readers to read multiple file types per plugin

Both of these plugins only read one file type, but it's allowed now.

Contributes to issue CURA-34.
This commit is contained in:
Ghostkeeper 2015-12-15 16:12:05 +01:00
parent f95bfd8ae3
commit 984a8efe1e
2 changed files with 12 additions and 8 deletions

View file

@ -15,10 +15,12 @@ def getMetaData():
"description": catalog.i18nc("@info:whatsthis", "Provides support for importing Cura profiles."),
"api": 2
},
"profile_reader": {
"extension": "curaprofile",
"description": catalog.i18nc("@item:inlistbox", "Cura Profile")
}
"profile_reader": [
{
"extension": "curaprofile",
"description": catalog.i18nc("@item:inlistbox", "Cura Profile")
}
]
}
def register(app):

View file

@ -15,10 +15,12 @@ def getMetaData():
"description": catalog.i18nc("@info:whatsthis", "Provides support for importing profiles from g-code files."),
"api": 2
},
"profile_reader": {
"extension": "gcode",
"description": catalog.i18nc("@item:inlistbox", "G-code File")
}
"profile_reader": [
{
"extension": "gcode",
"description": catalog.i18nc("@item:inlistbox", "G-code File")
}
]
}
def register(app):