mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-26 12:21:26 -07:00
Add Version upgrade 3.3 to 3.4
Need to distinguish between quality and quality_changes in the cura directory, so we need to move all custom quality profiles into the quality_changes directory.
This commit is contained in:
parent
c3fe53123b
commit
19bc2b78f4
5 changed files with 101 additions and 11 deletions
35
plugins/VersionUpgrade/VersionUpgrade33to34/__init__.py
Normal file
35
plugins/VersionUpgrade/VersionUpgrade33to34/__init__.py
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# Copyright (c) 2018 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
from . import VersionUpgrade33to34
|
||||
|
||||
upgrade = VersionUpgrade33to34.VersionUpgrade33to34()
|
||||
|
||||
|
||||
def getMetaData():
|
||||
return {
|
||||
"version_upgrade": {
|
||||
# From To Upgrade function
|
||||
("definition_changes", 3000004): ("definition_changes", 4000004, upgrade.upgradeInstanceContainer),
|
||||
("quality_changes", 3000004): ("quality_changes", 4000004, upgrade.upgradeInstanceContainer),
|
||||
("user", 3000004): ("user", 4000004, upgrade.upgradeInstanceContainer),
|
||||
},
|
||||
"sources": {
|
||||
"definition_changes": {
|
||||
"get_version": upgrade.getCfgVersion,
|
||||
"location": {"./definition_changes"}
|
||||
},
|
||||
"quality_changes": {
|
||||
"get_version": upgrade.getCfgVersion,
|
||||
"location": {"./quality"}
|
||||
},
|
||||
"user": {
|
||||
"get_version": upgrade.getCfgVersion,
|
||||
"location": {"./user"}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
def register(app):
|
||||
return { "version_upgrade": upgrade }
|
||||
Loading…
Add table
Add a link
Reference in a new issue