Rename settings section to values

It should be called 'values' in the new version.

Contributes to issue CURA-844.
This commit is contained in:
Ghostkeeper 2016-07-04 01:27:13 +02:00
parent b841738b76
commit 8f34186a9b

View file

@ -99,9 +99,9 @@ class Profile:
if self._settings:
VersionUpgrade21to22.VersionUpgrade21to22.VersionUpgrade21to22.translateSettings(self._settings)
config.add_section("settings")
config.add_section("values")
for key, value in self._settings.items():
config.set("settings", key, str(value))
config.set("values", key, str(value))
if self._changed_settings_defaults:
VersionUpgrade21to22.VersionUpgrade21to22.VersionUpgrade21to22.translateSettings(self._changed_settings_defaults)