mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Fix setting the time_remaining_method in the versionUpgrader
The DisplayProgressOnLCD script was changed and the "time_remaining" was split into two settings: the "time_remaining" and the "time_remaining_method". If the "time_remaining" was enabled, the "time_remaining_method" should be set to "m117". The VersionUpgrader48to49 was changing the "time_remaining" to "m117" instead of changing the "time_remaining_method", which was leading to the "time_remaining" having a wrong value and not being interpreted as a boolean. This commit fixes that by setting the "time_remaining_method" into "m117" when the "time_remaining" was True. CURA-8110
This commit is contained in:
parent
27fc435724
commit
081b0b23a4
@ -68,7 +68,7 @@ class VersionUpgrade48to49(VersionUpgrade):
|
||||
# Update Display Progress on LCD parameters.
|
||||
script_id = script_parser.sections()[0]
|
||||
if script_id == "DisplayProgressOnLCD":
|
||||
script_parser[script_id]["time_remaining"] = "m117" if script_parser[script_id]["time_remaining"] == "True" else "none"
|
||||
script_parser[script_id]["time_remaining_method"] = "m117" if script_parser[script_id]["time_remaining"] == "True" else "none"
|
||||
|
||||
script_io = io.StringIO()
|
||||
script_parser.write(script_io)
|
||||
|
Loading…
x
Reference in New Issue
Block a user