Index: sources/gui/qml/pages/posttreatment/PostTreatmentDisconnectStack.qml =================================================================== diff -u -r9c0335bc7f5a2b591a9c6241b00ebb9510ea611a -r36981dc04fd7c25285975d4ba5ad8c1ddeb16028 --- sources/gui/qml/pages/posttreatment/PostTreatmentDisconnectStack.qml (.../PostTreatmentDisconnectStack.qml) (revision 9c0335bc7f5a2b591a9c6241b00ebb9510ea611a) +++ sources/gui/qml/pages/posttreatment/PostTreatmentDisconnectStack.qml (.../PostTreatmentDisconnectStack.qml) (revision 36981dc04fd7c25285975d4ba5ad8c1ddeb16028) @@ -61,6 +61,16 @@ return _root.subStepIndex === PostTreatmentDisconnectStack.Step.DrainConsumable } + function continueEnabled() { + switch ( _root.subStepIndex ) { + case PostTreatmentDisconnectStack.Step.DisconnectPatient: + return true + case PostTreatmentDisconnectStack.Step.DrainConsumable: + return ! vTreatmentDryBicartDisconnect.depressurizeInProgress && ! vTreatmentDryBicartDisconnect.drainInProgress + default: + } + } + // ----- Screens definitions PostTreatmentBase { id: _postTreatmentDisconnectPatient; stepIndex: PostTreatmentDisconnectStack.Step.DisconnectPatient; subStepName: qsTr("Disconnect Patient BloodLines"); instructionBased: true} PostTreatmentDrainConsumables { id: _postTreatmentDrainConsumables; stepIndex: PostTreatmentDisconnectStack.Step.DrainConsumable; }