Index: sources/gui/qml/pages/TreatmentFlowBase.qml =================================================================== diff -u -r265ce7409a0ea99a4ae059f5ce7978c9cdb10631 -rf68b226e67eb500758ee94fe015df48931240013 --- sources/gui/qml/pages/TreatmentFlowBase.qml (.../TreatmentFlowBase.qml) (revision 265ce7409a0ea99a4ae059f5ce7978c9cdb10631) +++ sources/gui/qml/pages/TreatmentFlowBase.qml (.../TreatmentFlowBase.qml) (revision f68b226e67eb500758ee94fe015df48931240013) @@ -66,6 +66,17 @@ signal backClicked() signal confirmClicked() + onVisibleChanged: { + if (checkList) + checkList.resetItems() + if (instruction) + instruction.currentStepIndex = 0 + _notification.text = "" + if (visible) { + _mainMenu.hidden = true + } + } + // vvvvvvvvvvvvvvvvvvvvvvvvv HEADER vvvvvvvvvvvvvvvvvvvvvvvvv // StepNavigationTitleBar { id: _titleBar stepIndex : stackStepIndex // shall have a definition in the parent stack @@ -167,7 +178,7 @@ NotificationBarSmall { id: _notification } Connections { target: vSettings - onInstructionsChanged : { + function onInstructionsChanged ( vValue ) { if ( instructionBased ) { let stepName = header.stepNames[stackStepIndex] if ( stepName === undefined ) stepName = "" @@ -184,14 +195,4 @@ } } - onVisibleChanged: { - if (checkList) - checkList.resetItems() - if (instruction) - instruction.currentStepIndex = 0 - _notification.text = "" - if (visible) { - _mainMenu.hidden = true - } - } }