diff --git a/plugins/VersionUpgrade/VersionUpgrade462to47/VersionUpgrade462to47.py b/plugins/VersionUpgrade/VersionUpgrade462to47/VersionUpgrade462to47.py index 9f99eeec79..3461ead8d2 100644 --- a/plugins/VersionUpgrade/VersionUpgrade462to47/VersionUpgrade462to47.py +++ b/plugins/VersionUpgrade/VersionUpgrade462to47/VersionUpgrade462to47.py @@ -123,12 +123,12 @@ class VersionUpgrade462to47(VersionUpgrade): # Migrate DisplayCompleteOnLCD to DisplayProgressOnLCD if script_id == "DisplayPercentCompleteOnLCD": - script_settings = script_parser.items(script_id) + was_enabled = script_parser[script_id]["TurnOn"] == "true" 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 (script_settings["TurnOn"] == "true"): + if (was_enabled): script_parser.set(script_id, "time_remaining", "true") script_io = io.StringIO()