mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 13:49:00 +08:00
Fix upgrade of preference if visible settings was not modified
Oops. Small oversight. This could lead to the preferences file being erased completely. Found during work on Sentry issue CURA-NH.
This commit is contained in:
parent
abffb6c26c
commit
dfa021ab20
@ -29,6 +29,7 @@ class VersionUpgrade45to46(VersionUpgrade):
|
||||
parser["metadata"]["setting_version"] = "12"
|
||||
|
||||
# Remove deleted settings from the visible settings list.
|
||||
if "general" in parser and "visible_settings" in parser["general"]:
|
||||
visible_settings = set(parser["general"]["visible_settings"].split(";"))
|
||||
for removed in _removed_settings:
|
||||
if removed in visible_settings:
|
||||
|
Loading…
x
Reference in New Issue
Block a user