diff options
author | Kostas Karmas <konskarm@gmail.com> | 2021-04-06 12:38:28 +0300 |
---|---|---|
committer | Kostas Karmas <konskarm@gmail.com> | 2021-04-06 12:38:28 +0300 |
commit | 081b0b23a41711ab91c8b1f8b10354e80d82764c (patch) | |
tree | 3b91ea2d369a74820c87b7230c75690dade94992 /plugins/VersionUpgrade | |
parent | 27fc435724dc394f74429e0c53e928a48b78c7b9 (diff) |
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
Diffstat (limited to 'plugins/VersionUpgrade')
-rw-r--r-- | plugins/VersionUpgrade/VersionUpgrade48to49/VersionUpgrade48to49.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade48to49/VersionUpgrade48to49.py b/plugins/VersionUpgrade/VersionUpgrade48to49/VersionUpgrade48to49.py index 0ded1a064b..789830ef08 100644 --- a/plugins/VersionUpgrade/VersionUpgrade48to49/VersionUpgrade48to49.py +++ b/plugins/VersionUpgrade/VersionUpgrade48to49/VersionUpgrade48to49.py @@ -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) |