diff options
author | c.lamboo <casperlamboo@gmail.com> | 2022-08-26 14:05:58 +0300 |
---|---|---|
committer | c.lamboo <casperlamboo@gmail.com> | 2022-08-26 14:05:58 +0300 |
commit | 255fcfae56383e5a9f1333505a58438a05bd4587 (patch) | |
tree | aee19b1d38fecb21de70743efd366e5cacd389ef | |
parent | 8fa6047eca7481e35c29be0ce65d308e7335cb91 (diff) |
Bumb machine stack version number
CURA-9289
-rwxr-xr-x | cura/CuraApplication.py | 2 | ||||
-rwxr-xr-x | cura/Settings/GlobalStack.py | 2 | ||||
-rw-r--r-- | plugins/VersionUpgrade/VersionUpgrade50to52/__init__.py | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 2fddc51558..f690456913 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -474,7 +474,7 @@ class CuraApplication(QtApplication): ("quality", InstanceContainer.Version * 1000000 + self.SettingVersion): (self.ResourceTypes.QualityInstanceContainer, "application/x-uranium-instancecontainer"), ("quality_changes", InstanceContainer.Version * 1000000 + self.SettingVersion): (self.ResourceTypes.QualityChangesInstanceContainer, "application/x-uranium-instancecontainer"), ("intent", InstanceContainer.Version * 1000000 + self.SettingVersion): (self.ResourceTypes.IntentInstanceContainer, "application/x-uranium-instancecontainer"), - ("machine_stack", GlobalStack.Version * 1000000 + self.SettingVersion + 1): (self.ResourceTypes.MachineStack, "application/x-cura-globalstack"), + ("machine_stack", GlobalStack.Version * 1000000 + self.SettingVersion): (self.ResourceTypes.MachineStack, "application/x-cura-globalstack"), ("extruder_train", ExtruderStack.Version * 1000000 + self.SettingVersion): (self.ResourceTypes.ExtruderStack, "application/x-cura-extruderstack"), ("preferences", Preferences.Version * 1000000 + self.SettingVersion): (Resources.Preferences, "application/x-uranium-preferences"), ("user", InstanceContainer.Version * 1000000 + self.SettingVersion): (self.ResourceTypes.UserInstanceContainer, "application/x-uranium-instancecontainer"), diff --git a/cura/Settings/GlobalStack.py b/cura/Settings/GlobalStack.py index c2439935a2..6231d4a9ab 100755 --- a/cura/Settings/GlobalStack.py +++ b/cura/Settings/GlobalStack.py @@ -31,6 +31,8 @@ if TYPE_CHECKING: class GlobalStack(CuraContainerStack): """Represents the Global or Machine stack and its related containers.""" + Version: int = 6 + def __init__(self, container_id: str) -> None: super().__init__(container_id) diff --git a/plugins/VersionUpgrade/VersionUpgrade50to52/__init__.py b/plugins/VersionUpgrade/VersionUpgrade50to52/__init__.py index 89d24882d6..d5f2a4a0df 100644 --- a/plugins/VersionUpgrade/VersionUpgrade50to52/__init__.py +++ b/plugins/VersionUpgrade/VersionUpgrade50to52/__init__.py @@ -13,7 +13,7 @@ upgrade = VersionUpgrade50to52.VersionUpgrade50to52() def getMetaData() -> Dict[str, Any]: return { "version_upgrade": { - ("machine_stack", 5000020): ("machine_stack", 5000021, upgrade.upgradeStack), + ("machine_stack", 5000020): ("machine_stack", 6000020, upgrade.upgradeStack), }, "sources": { "machine_stack": { |