phnxdrgn536 / FLSun-v400

Repository of helpful files for V400 printer
Creative Commons Zero v1.0 Universal
72 stars 15 forks source link

This updates the setting version from 20 to 22. #39

Closed fzechert closed 10 months ago

fzechert commented 10 months ago

Cura 5.4 expects the setting version 22 for quality and intent files. Upon reading files with version 20, cura will trigger a configuration upgrade task during cura start up.

On linux, this upgrade process seems to be broken. The files quality/flsun_v400_global_*.inst.cfg will get truncated to 0 bytes during the upgrade task.

Restarting cura afterwards with the truncated 0 byte files results in a cura program crash during cura start up.

To prevent the bogus upgrade task from cura to truncate the global quality files, this manually upgrades the setting_version in all relevant places.

The currently expected versions for the files can be seen in Cura's version upgrade code: https://github.com/Ultimaker/Cura/blob/fbfb4b82dd17b9173a23b0d4ac671994f1318075/plugins/VersionUpgrade/VersionUpgrade53to54/__init__.py#L16C29-L16C29