diff options
author | Ghostkeeper <rubend@tutanota.com> | 2020-07-20 12:48:29 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2020-07-20 12:48:29 +0300 |
commit | 528c8e22266736f6d377ea7edab49bd0288bff57 (patch) | |
tree | c62c94a981168f99743d551d0288ce0348c77b28 /plugins/3MFWriter | |
parent | 0d4ed17ad362aa868eada790d2d12c4d0a2e33a4 (diff) |
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.
Diffstat (limited to 'plugins/3MFWriter')
-rw-r--r-- | plugins/3MFWriter/ThreeMFWorkspaceWriter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/3MFWriter/ThreeMFWorkspaceWriter.py b/plugins/3MFWriter/ThreeMFWorkspaceWriter.py index 2e113e0c4f..94628cd2d4 100644 --- a/plugins/3MFWriter/ThreeMFWorkspaceWriter.py +++ b/plugins/3MFWriter/ThreeMFWorkspaceWriter.py @@ -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() |