Add translation for combing

Combing was made into an enum instead of a boolean.

Contributes to issue CURA-844.
This commit is contained in:
Ghostkeeper 2016-04-20 12:04:22 +02:00 committed by Ghostkeeper
parent 17f4703337
commit f7be4831b8
2 changed files with 6 additions and 0 deletions

View file

@ -77,6 +77,8 @@ class MachineInstance:
for key, value in self._machine_setting_overrides.items(): for key, value in self._machine_setting_overrides.items():
if key == "speed_support_lines": #Setting key was changed for 2.2. if key == "speed_support_lines": #Setting key was changed for 2.2.
key = "speed_support_infill" key = "speed_support_infill"
if key == "retraction_combing": #Combing was made into an enum instead of a boolean.
value = "off" if (value == "False") else "all"
config.set("machine_settings", key, str(value)) config.set("machine_settings", key, str(value))
output = io.StringIO() output = io.StringIO()

View file

@ -96,6 +96,8 @@ class Profile:
for key, value in self._settings.items(): for key, value in self._settings.items():
if key == "speed_support_lines": #Setting key was changed for 2.2. if key == "speed_support_lines": #Setting key was changed for 2.2.
key = "speed_support_infill" key = "speed_support_infill"
if key == "retraction_combing": #Combing was made into an enum instead of a boolean.
value = "off" if (value == "False") else "all"
config.set("settings", key, str(value)) config.set("settings", key, str(value))
if self._changed_settings_defaults: if self._changed_settings_defaults:
@ -103,6 +105,8 @@ class Profile:
for key, value in self._changed_settings_defaults.items(): for key, value in self._changed_settings_defaults.items():
if key == "speed_support_lines": #Setting key was changed for 2.2. if key == "speed_support_lines": #Setting key was changed for 2.2.
key = "speed_support_infill" key = "speed_support_infill"
if key == "retraction_combing": #Combing was made into an enum instead of a boolean.
value = "off" if (value == "False") else "all"
config.set("defaults", key, str(value)) config.set("defaults", key, str(value))
if self._disabled_settings_defaults: if self._disabled_settings_defaults: