mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Add version upgrade that adds empty intent profile to the stacks
CURA-6534
This commit is contained in:
parent
a1bbb46555
commit
7cc4ac741c
6 changed files with 114 additions and 0 deletions
34
plugins/VersionUpgrade/VersionUpgrade41to42/__init__.py
Normal file
34
plugins/VersionUpgrade/VersionUpgrade41to42/__init__.py
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# Copyright (c) 2019 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
from typing import Any, Dict, TYPE_CHECKING
|
||||
|
||||
from . import VersionUpgrade41to42
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from UM.Application import Application
|
||||
|
||||
upgrade = VersionUpgrade41to42.VersionUpgrade41to42()
|
||||
|
||||
def getMetaData() -> Dict[str, Any]:
|
||||
return {
|
||||
"version_upgrade": {
|
||||
# From To Upgrade function
|
||||
("machine_stack", 4000007): ("machine_stack", 5000007, upgrade.upgradeStack),
|
||||
("extruder_train", 4000007): ("extruder_train", 5000007, upgrade.upgradeStack)
|
||||
},
|
||||
"sources": {
|
||||
"machine_stack": {
|
||||
"get_version": upgrade.getCfgVersion,
|
||||
"location": {"./machine_instances"}
|
||||
},
|
||||
"extruder_train": {
|
||||
"get_version": upgrade.getCfgVersion,
|
||||
"location": {"./extruders"}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
def register(app: "Application") -> Dict[str, Any]:
|
||||
return {"version_upgrade": upgrade}
|
||||
Loading…
Add table
Add a link
Reference in a new issue