mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -06:00
Pass strings to writing configparser
When setting fields in configparser, it must be a string. No ints. Contributes to issue CURA-844.
This commit is contained in:
parent
aeecdd9e0e
commit
149e873eb6
2 changed files with 4 additions and 4 deletions
|
@ -96,14 +96,14 @@ class Profile:
|
|||
for key, value in self._settings.items():
|
||||
if key == "speed_support_lines": #Setting key was changed for 2.2.
|
||||
key = "speed_support_infill"
|
||||
config.set("settings", key, value)
|
||||
config.set("settings", key, str(value))
|
||||
|
||||
if self._changed_settings_defaults:
|
||||
config.add_section("defaults")
|
||||
for key, value in self._changed_settings_defaults.items():
|
||||
if key == "speed_support_lines": #Setting key was changed for 2.2.
|
||||
key = "speed_support_infill"
|
||||
config.set("defaults", key, value)
|
||||
config.set("defaults", key, str(value))
|
||||
|
||||
if self._disabled_settings_defaults:
|
||||
config.add_section("disabled_defaults")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue