mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 10:18:59 +08:00
Update metadata with dynamic config types
After settings rework, we decided to make the upgrade plug-ins define their own configuration types. This is basically the definition for these configuration types. Only the get_version function is not yet implemented. Contributes to issue CURA-844.
This commit is contained in:
parent
6572d939bf
commit
8a44705413
@ -16,13 +16,23 @@ def getMetaData():
|
||||
"api": 2
|
||||
},
|
||||
"version_upgrade": {
|
||||
# From To Upgrade function
|
||||
("profile", 1): ("instance_container", 2, VersionUpgrade21to22.upgradeProfile),
|
||||
("machine_instance", 1): ("container_stack", 2, VersionUpgrade21to22.upgradeMachineInstance),
|
||||
("preferences", 1): ("preferences", 2, VersionUpgrade21to22.upgradePreferences)
|
||||
},
|
||||
"sources": {
|
||||
"profile": {
|
||||
"from": 1,
|
||||
"to": 2
|
||||
"get_version": VersionUpgrade21to22.getCfgVersion,
|
||||
"location": {"./profiles"}
|
||||
},
|
||||
"machine_instance": {
|
||||
"from": 1,
|
||||
"to": 2
|
||||
"get_version": VersionUpgrade21to22.getCfgVersion,
|
||||
"location": {"./machine_instances"}
|
||||
},
|
||||
"preferences": {
|
||||
"get_version": VersionUpgrade21to22.getCfgVersion,
|
||||
"location": {"."}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user