Index: sources/gui/qml/pages/posttreatment/PostTreatmentBase.qml =================================================================== diff -u -ra5760947d3ed0d2748ba023a1c25e3c6aa0b1de1 -r41ba9331e6a540df0c8eced0c4d3b8684afa9afa --- sources/gui/qml/pages/posttreatment/PostTreatmentBase.qml (.../PostTreatmentBase.qml) (revision a5760947d3ed0d2748ba023a1c25e3c6aa0b1de1) +++ sources/gui/qml/pages/posttreatment/PostTreatmentBase.qml (.../PostTreatmentBase.qml) (revision 41ba9331e6a540df0c8eced0c4d3b8684afa9afa) @@ -30,7 +30,26 @@ header.stepNames: [ qsTr("Disconnection"), qsTr("Review" ), - qsTr("Disposables" ), qsTr("Disinfection" ), ] + + header.stepLineLength : 100 + + onVisibleChanged: { + if (visible) { + _root.updateModel(stackStepIndex) + } + } + + function updateModel (index) { + let group = _root.header.stepNames[index] + if ( group === undefined ) group = "" + let instructionsGroup = vSettings.instructions[group] + + if ( instructionsGroup !== undefined ) { + instructionTitle = instructionsGroup.title + instructionStepNames = instructionsGroup.keys + instructionStepImages = instructionsGroup.values + } + } }