diff options
author | Konstantinos Karmas <konskarm@gmail.com> | 2020-07-08 18:30:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-08 18:30:05 +0300 |
commit | 79a816db6b5f701be0c4b3351701133475f1d308 (patch) | |
tree | 88ce089d9d30ac4b1ad7e1a3b3615fa49fbe80bf /plugins/VersionUpgrade | |
parent | 0b3773ed14a7620eac0238fca2a420f5dd7d3c72 (diff) | |
parent | 0a97511d3a8320e5d5d9b62617d646af667bae78 (diff) |
Merge pull request #7726 from Bostwickenator/master
Add PostProcessingPlugin script DisplayProgressOnLCD
Diffstat (limited to 'plugins/VersionUpgrade')
-rw-r--r-- | plugins/VersionUpgrade/VersionUpgrade462to47/VersionUpgrade462to47.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade462to47/VersionUpgrade462to47.py b/plugins/VersionUpgrade/VersionUpgrade462to47/VersionUpgrade462to47.py index a167c9917e..396b17b4be 100644 --- a/plugins/VersionUpgrade/VersionUpgrade462to47/VersionUpgrade462to47.py +++ b/plugins/VersionUpgrade/VersionUpgrade462to47/VersionUpgrade462to47.py @@ -152,6 +152,17 @@ class VersionUpgrade462to47(VersionUpgrade): if "redo_layers" in script_parser["PauseAtHeight"]: script_parser["PauseAtHeight"]["redo_layer"] = str(int(script_parser["PauseAtHeight"]["redo_layers"]) > 0) del script_parser["PauseAtHeight"]["redo_layers"] # Has been renamed to without the S. + + # Migrate DisplayCompleteOnLCD to DisplayProgressOnLCD + if script_id == "DisplayRemainingTimeOnLCD": + was_enabled = parseBool(script_parser[script_id]["TurnOn"]) if "TurnOn" in script_parser[script_id] else False + script_parser.remove_section(script_id) + + script_id = "DisplayProgressOnLCD" + script_parser.add_section(script_id) + if was_enabled: + script_parser.set(script_id, "time_remaining", "True") + script_io = io.StringIO() script_parser.write(script_io) script_str = script_io.getvalue() |