diff options
author | Lipu Fei <lipu.fei815@gmail.com> | 2017-05-19 12:05:14 +0300 |
---|---|---|
committer | Lipu Fei <lipu.fei815@gmail.com> | 2017-05-19 12:05:16 +0300 |
commit | 70894608613d736555b131da37a2a61dba905e77 (patch) | |
tree | 0824e3d0d3928e99fd7fbedcc67332ef3f5dfd9e /plugins/XmlMaterialProfile/__init__.py | |
parent | c43a71084cb6f85ef747f74d3aa7ae898e5d1ebc (diff) |
Minor refactoring for XMLMaterial upgrade
CURA-3756
Diffstat (limited to 'plugins/XmlMaterialProfile/__init__.py')
-rw-r--r-- | plugins/XmlMaterialProfile/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/XmlMaterialProfile/__init__.py b/plugins/XmlMaterialProfile/__init__.py index 73965ac8b8..d98f2efb3d 100644 --- a/plugins/XmlMaterialProfile/__init__.py +++ b/plugins/XmlMaterialProfile/__init__.py @@ -2,14 +2,14 @@ # Cura is released under the terms of the AGPLv3 or higher. from . import XmlMaterialProfile -from . import Upgrader +from . import XmlMaterialUpgrader from UM.MimeTypeDatabase import MimeType, MimeTypeDatabase from UM.i18n import i18nCatalog catalog = i18nCatalog("cura") -upgrader = Upgrader.Upgrader() +upgrader = XmlMaterialUpgrader.XmlMaterialUpgrader() def getMetaData(): @@ -49,7 +49,7 @@ def register(app): # add upgrade version from cura.CuraApplication import CuraApplication from UM.VersionUpgradeManager import VersionUpgradeManager - VersionUpgradeManager.getInstance().setCurrentVersion( + VersionUpgradeManager.getInstance().registerCurrentVersion( ("materials", XmlMaterialProfile.XmlMaterialProfile.Version * 1000000 + CuraApplication.SettingVersion), (CuraApplication.ResourceTypes.MaterialInstanceContainer, "application/x-uranium-instancecontainer") ) |