diff options
author | Ghostkeeper <rubend@tutanota.com> | 2017-05-12 15:51:44 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2017-05-12 15:51:44 +0300 |
commit | 9820dac4a6f0dbe942cbd66e8e13536361af68d0 (patch) | |
tree | 50494a09c7f6361922fdeeed0db2019e8c961485 /plugins/VersionUpgrade/VersionUpgrade21to22 | |
parent | 20e9d195876b2a20a6fa85521b9ae50f86cea75d (diff) |
Actually use setting_version to get the setting version number
This was sort of hidden because we've always incremented the normal version number up until now.
Contributes to issue CURA-3427.
Diffstat (limited to 'plugins/VersionUpgrade/VersionUpgrade21to22')
-rw-r--r-- | plugins/VersionUpgrade/VersionUpgrade21to22/VersionUpgrade21to22.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade21to22/VersionUpgrade21to22.py b/plugins/VersionUpgrade/VersionUpgrade21to22/VersionUpgrade21to22.py index 855425053a..0785efa875 100644 --- a/plugins/VersionUpgrade/VersionUpgrade21to22/VersionUpgrade21to22.py +++ b/plugins/VersionUpgrade/VersionUpgrade21to22/VersionUpgrade21to22.py @@ -250,7 +250,7 @@ class VersionUpgrade21to22(VersionUpgrade): parser = configparser.ConfigParser(interpolation = None) parser.read_string(serialised) format_version = int(parser.get("general", "version")) #Explicitly give an exception when this fails. That means that the file format is not recognised. - setting_version = int(parser.get("general", "version", fallback = 0)) + setting_version = int(parser.get("general", "setting_version", fallback = 0)) return format_version * 1000000 + setting_version ## Gets the fallback quality to use for a specific machine-variant-material |