Also store setting_version in preferences file for project files

This allows the version upgrade system to update these preferences in order to display the correct list of visible settings.
This commit is contained in:
Ghostkeeper 2020-07-20 11:48:29 +02:00
parent 0d4ed17ad3
commit 528c8e2226
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -63,7 +63,7 @@ class ThreeMFWorkspaceWriter(WorkspaceWriter):
# Write preferences to archive
original_preferences = Application.getInstance().getPreferences() #Copy only the preferences that we use to the workspace.
temp_preferences = Preferences()
for preference in {"general/visible_settings", "cura/active_mode", "cura/categories_expanded"}:
for preference in {"general/visible_settings", "cura/active_mode", "cura/categories_expanded", "metadata/setting_version"}:
temp_preferences.addPreference(preference, None)
temp_preferences.setValue(preference, original_preferences.getValue(preference))
preferences_string = StringIO()