Add top_bottom category to visible settings in preference

CURA-8810_version_upgrade
This commit is contained in:
jelle Spijker 2021-04-01 14:22:32 +02:00 committed by Jelle Spijker
parent b05b36ae56
commit 85fa07f6dd
No known key found for this signature in database
GPG Key ID: 6662DC033BE6B99A

View File

@ -23,6 +23,9 @@ class VersionUpgrade48to49(VersionUpgrade):
# Update version number.
parser["metadata"]["setting_version"] = "17"
# Update visibility settings to include new top_bottom category
parser["general"]["visible_settings"] += ";top_bottom"
result = io.StringIO()
parser.write(result)
return [filename], [result.getvalue()]