mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-19 13:59:04 +08:00
Introduce blanco LegacySettings plugin
This plugin will be implemented to import settings from legacy versions of Cura. Contributes to issue CURA-37.
This commit is contained in:
parent
afd63c53c0
commit
9671ae3c74
8
plugins/LegacySettings/LegacySettings.py
Normal file
8
plugins/LegacySettings/LegacySettings.py
Normal file
@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2015 Ultimaker B.V.
|
||||
# Cura is released under the terms of the AGPLv3 or higher.
|
||||
|
||||
from UM.Extension import Extension
|
||||
|
||||
class LegacySettings(Extension):
|
||||
def __init__(self):
|
||||
super().__init__()
|
21
plugins/LegacySettings/__init__.py
Normal file
21
plugins/LegacySettings/__init__.py
Normal file
@ -0,0 +1,21 @@
|
||||
# Copyright (c) 2015 Ultimaker B.V.
|
||||
# Cura is released under the terms of the AGPLv3 or higher.
|
||||
|
||||
from . import LegacySettings
|
||||
|
||||
from UM.i18n import i18nCatalog
|
||||
catalog = i18nCatalog("cura")
|
||||
|
||||
def getMetaData():
|
||||
return {
|
||||
"plugin": {
|
||||
"name": catalog.i18nc("@label", "GCode Reader"),
|
||||
"author": "Ultimaker",
|
||||
"version": "1.0",
|
||||
"description": catalog.i18nc("@info:whatsthis", "Provides support for reading GCode files."),
|
||||
"api": 2
|
||||
}
|
||||
}
|
||||
|
||||
def register(app):
|
||||
return { "extension": LegacySettings.LegacySettings() }
|
Loading…
x
Reference in New Issue
Block a user