mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 22:58:58 +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
|
"api": 2
|
||||||
},
|
},
|
||||||
"version_upgrade": {
|
"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": {
|
"profile": {
|
||||||
"from": 1,
|
"get_version": VersionUpgrade21to22.getCfgVersion,
|
||||||
"to": 2
|
"location": {"./profiles"}
|
||||||
},
|
},
|
||||||
"machine_instance": {
|
"machine_instance": {
|
||||||
"from": 1,
|
"get_version": VersionUpgrade21to22.getCfgVersion,
|
||||||
"to": 2
|
"location": {"./machine_instances"}
|
||||||
|
},
|
||||||
|
"preferences": {
|
||||||
|
"get_version": VersionUpgrade21to22.getCfgVersion,
|
||||||
|
"location": {"."}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user