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 /plugins/GCodeProfileReader | |
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.
Diffstat (limited to 'plugins/GCodeProfileReader')
-rw-r--r-- | plugins/GCodeProfileReader/__init__.py | 10 |
1 files changed, 6 insertions, 4 deletions
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): |