mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-14 09:21:50 +08:00

If the 4.8 is started from a clean install and no category gets expanded in the settings panel, then the "categories_expanded" key will not exist in the [cura] preferences in cura.cfg. As a result, when the 4.9 gets started in this specific case, the version upgrade 48 to 49 will produce a crash and will be considered as "failed", which will then lead to cura requesting from the user to go from the entire onboarding flow instead of landing on the "What's new" pages (even though everything else has been properly updated). This commit fixes that by checking whether the "categories_expanded" key exists in the cura.cfg.