diff options
author | Ghostkeeper <ghost_keeper+github@hotmail.com> | 2015-12-15 18:12:05 +0300 |
---|---|---|
committer | Ghostkeeper <ghost_keeper+github@hotmail.com> | 2015-12-17 15:35:16 +0300 |
commit | 984a8efe1e7ba2b72440bc516cf2925b3721d21a (patch) | |
tree | fecb49b74136da2df36f2b618eb4484565fcf7a0 | |
parent | f95bfd8ae3970e97c347b1ebf5d103f11dbc75e1 (diff) |
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.
-rw-r--r-- | plugins/CuraProfileReader/__init__.py | 10 | ||||
-rw-r--r-- | plugins/GCodeProfileReader/__init__.py | 10 |
2 files changed, 12 insertions, 8 deletions
diff --git a/plugins/CuraProfileReader/__init__.py b/plugins/CuraProfileReader/__init__.py index d3a35d8ebd..16a24f116d 100644 --- a/plugins/CuraProfileReader/__init__.py +++ b/plugins/CuraProfileReader/__init__.py @@ -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): diff --git a/plugins/GCodeProfileReader/__init__.py b/plugins/GCodeProfileReader/__init__.py index a5ebb074c8..1f4ced2ae6 100644 --- a/plugins/GCodeProfileReader/__init__.py +++ b/plugins/GCodeProfileReader/__init__.py @@ -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): |