mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 00:37:50 -06:00
Rename quality type from 'low' to 'fast'
Not only the profile name was changed, but also the quality type.
See commit 1538486e85
.
Contributes to issue CURA-5177.
This commit is contained in:
parent
50b4bac672
commit
b3d652839d
1 changed files with 8 additions and 1 deletions
|
@ -58,6 +58,10 @@ _RENAMED_QUALITY_PROFILES = {
|
|||
"um2_low": "um2_fast"
|
||||
}
|
||||
|
||||
_RENAMED_QUALITY_TYPES = {
|
||||
"low": "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):
|
||||
|
@ -137,7 +141,10 @@ class VersionUpgrade32to33(VersionUpgrade):
|
|||
del parser["metadata"]["extruder"]
|
||||
|
||||
quality_type = parser["metadata"]["quality_type"]
|
||||
parser["metadata"]["quality_type"] = quality_type.lower()
|
||||
quality_type = quality_type.lower()
|
||||
if quality_type in _RENAMED_QUALITY_TYPES:
|
||||
quality_type = _RENAMED_QUALITY_TYPES[quality_type]
|
||||
parser["metadata"]["quality_type"] = quality_type
|
||||
|
||||
#Update version number.
|
||||
parser["general"]["version"] = "3"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue