Index: sources/gui/qml/pages/posttreatment/PostTreatmentBase.qml =================================================================== diff -u -ra5760947d3ed0d2748ba023a1c25e3c6aa0b1de1 -r04fd28f30e37a09450ff5877ae2f805a92898b44 --- sources/gui/qml/pages/posttreatment/PostTreatmentBase.qml (.../PostTreatmentBase.qml) (revision a5760947d3ed0d2748ba023a1c25e3c6aa0b1de1) +++ sources/gui/qml/pages/posttreatment/PostTreatmentBase.qml (.../PostTreatmentBase.qml) (revision 04fd28f30e37a09450ff5877ae2f805a92898b44) @@ -27,10 +27,23 @@ */ TreatmentFlowBase { id: _root objectName: "_PostTreatmentBase" - header.stepNames: [ - qsTr("Disconnection"), - qsTr("Review" ), - qsTr("Disposables" ), - qsTr("Disinfection" ), - ] + header.visible : false + + onVisibleChanged: { + if (visible) { + _root.updateModel(stackStepIndex) + } + } + + function updateModel (index) { + let group = stepNames[index] + if ( group === undefined ) group = "" + let instructionsGroup = vSettings.instructions[group] + + if ( instructionsGroup !== undefined ) { + instructionTitle = instructionsGroup.title + instructionStepNames = instructionsGroup.keys + instructionStepImages = instructionsGroup.values + } + } }