mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Translate active machine setting
It was in machines/active_instance. Now it's in cura/active_machine. The setting value remains the same. Contributes to issue CURA-844.
This commit is contained in:
parent
e1db3e5316
commit
d1188899a7
1 changed files with 6 additions and 0 deletions
|
@ -57,6 +57,12 @@ class Preferences:
|
|||
visible_settings = ",".join(visible_settings)
|
||||
self._config.set("machines", "setting_visibility", value = visible_settings)
|
||||
|
||||
#Translate the active_instance key.
|
||||
if self._config.has_section("machines") and self._config.has_option("machines", "active_instance"):
|
||||
active_machine = self._config.get("machines", "active_instance")
|
||||
self._config.remove_option("machines", "active_instance")
|
||||
self._config.set("cura", "active_machine", active_machine)
|
||||
|
||||
#Update the version number itself.
|
||||
self._config.set("general", "version", value = "3")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue