Cura/plugins/VersionUpgrade
Kostas Karmas 39e9dcd4f5 Fix VersionUpgrade48to49 crashing if there is no "categories_expanded"
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.
2021-04-06 16:37:06 +02:00
..
VersionUpgrade21to22 Increment SDK version to 7.5.0 2021-04-06 13:28:08 +02:00
VersionUpgrade22to24 Increment SDK version to 7.5.0 2021-04-06 13:28:08 +02:00
VersionUpgrade25to26 Increment SDK version to 7.5.0 2021-04-06 13:28:08 +02:00
VersionUpgrade26to27 Increment SDK version to 7.5.0 2021-04-06 13:28:08 +02:00
VersionUpgrade27to30 Increment SDK version to 7.5.0 2021-04-06 13:28:08 +02:00
VersionUpgrade30to31 Increment SDK version to 7.5.0 2021-04-06 13:28:08 +02:00
VersionUpgrade32to33 Increment SDK version to 7.5.0 2021-04-06 13:28:08 +02:00
VersionUpgrade33to34 Increment SDK version to 7.5.0 2021-04-06 13:28:08 +02:00
VersionUpgrade34to35 Increment SDK version to 7.5.0 2021-04-06 13:28:08 +02:00
VersionUpgrade35to40 Increment SDK version to 7.5.0 2021-04-06 13:28:08 +02:00
VersionUpgrade40to41 Increment SDK version to 7.5.0 2021-04-06 13:28:08 +02:00
VersionUpgrade41to42 Increment SDK version to 7.5.0 2021-04-06 13:28:08 +02:00
VersionUpgrade42to43 Increment SDK version to 7.5.0 2021-04-06 13:28:08 +02:00
VersionUpgrade43to44 Increment SDK version to 7.5.0 2021-04-06 13:28:08 +02:00
VersionUpgrade44to45 Increment SDK version to 7.5.0 2021-04-06 13:28:08 +02:00
VersionUpgrade45to46 Increment SDK version to 7.5.0 2021-04-06 13:28:08 +02:00
VersionUpgrade47to48 Increment SDK version to 7.5.0 2021-04-06 13:28:08 +02:00
VersionUpgrade48to49 Fix VersionUpgrade48to49 crashing if there is no "categories_expanded" 2021-04-06 16:37:06 +02:00
VersionUpgrade460to462 Increment SDK version to 7.5.0 2021-04-06 13:28:08 +02:00
VersionUpgrade462to47 Increment SDK version to 7.5.0 2021-04-06 13:28:08 +02:00