mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Use access pattern from PauseAtHeight
This commit is contained in:
commit
18098ae893
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue