mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 01:07:52 -06:00
Properly support the extrauder trains.
CURA-2953 Version upgrade 2.3 to 2.4
This commit is contained in:
parent
724cc99f59
commit
e1d7a9faec
3 changed files with 18 additions and 3 deletions
|
@ -92,6 +92,15 @@ class VersionUpgrade22to24(VersionUpgrade):
|
|||
result.append( { "path": entry.path, "name": config.get("general", "name") } )
|
||||
return result
|
||||
|
||||
def upgradeExtruderTrain(self, serialised, filename):
|
||||
config = configparser.ConfigParser(interpolation = None)
|
||||
config.read_string(serialised) # Read the input string as config file.
|
||||
config.set("general", "version", "3") # Just bump the version number. That is all we need for now.
|
||||
|
||||
output = io.StringIO()
|
||||
config.write(output)
|
||||
return [filename], [output.getvalue()]
|
||||
|
||||
def getCfgVersion(self, serialised):
|
||||
parser = configparser.ConfigParser(interpolation = None)
|
||||
parser.read_string(serialised)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue