Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2018-03-29 12:56:47 +0300
committerGhostkeeper <rubend@tutanota.com>2018-03-29 13:00:59 +0300
commit50b4bac672988b48bea2d8608ea668fb0e6e9950 (patch)
treed347624aebe4e829d24be91da7f61e6e8dc001af /plugins/VersionUpgrade/VersionUpgrade32to33
parent049bab1341b5f164b7103ad4b8655967601c5940 (diff)
Upgrade quality profile names
These files have been renamed. Contributes to issue CURA-5177.
Diffstat (limited to 'plugins/VersionUpgrade/VersionUpgrade32to33')
-rw-r--r--plugins/VersionUpgrade/VersionUpgrade32to33/VersionUpgrade32to33.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade32to33/VersionUpgrade32to33.py b/plugins/VersionUpgrade/VersionUpgrade32to33/VersionUpgrade32to33.py
index e39266884d..5fbdbee7e3 100644
--- a/plugins/VersionUpgrade/VersionUpgrade32to33/VersionUpgrade32to33.py
+++ b/plugins/VersionUpgrade/VersionUpgrade32to33/VersionUpgrade32to33.py
@@ -53,6 +53,11 @@ _EXTRUDER_TO_POSITION = {
"vertex_k8400_dual_2nd": 1
}
+_RENAMED_QUALITY_PROFILES = {
+ "low": "fast",
+ "um2_low": "um2_fast"
+}
+
## Upgrades configurations from the state they were in at version 3.2 to the
# state they should be in at version 3.3.
class VersionUpgrade32to33(VersionUpgrade):
@@ -94,6 +99,10 @@ class VersionUpgrade32to33(VersionUpgrade):
#Update version number.
parser["general"]["version"] = "4"
+ #Update the name of the quality profile.
+ if parser["containers"]["2"] in _RENAMED_QUALITY_PROFILES:
+ parser["containers"]["2"] = _RENAMED_QUALITY_PROFILES[parser["containers"]["2"]]
+
result = io.StringIO()
parser.write(result)
return [filename], [result.getvalue()]