Index: sources/gui/qml/pages/MainStack.qml =================================================================== diff -u -r9c7a790376d07de7ddaa67e39d47102d68693c87 -r5687815256ae070a9a207107088e3f72dd464da0 --- sources/gui/qml/pages/MainStack.qml (.../MainStack.qml) (revision 9c7a790376d07de7ddaa67e39d47102d68693c87) +++ sources/gui/qml/pages/MainStack.qml (.../MainStack.qml) (revision 5687815256ae070a9a207107088e3f72dd464da0) @@ -1,13 +1,13 @@ /*! * - * Copyright (c) 2021-2023 Diality Inc. - All Rights Reserved. + * Copyright (c) 2021-2024 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file MainStack.qml * \author (last) Behrouz NematiPour - * \date (last) 14-Mar-2023 + * \date (last) 11-Jul-2024 * \author (original) Behrouz NematiPour * \date (original) 01-Mar-2021 * @@ -38,7 +38,7 @@ // DEBUG: this property can mostly be used for debugging to get pass the initial screen property var initialItem: _postModeScreen - property var _startupScreen: _GuiView.manufactSetup ? _settingsStack : _mainHome + property var _startupScreen: ( _GuiView.manufactSetup || _GuiView.updateSetup ) ? _settingsStack : _mainHome stackView.initialItem : _root.initialItem @@ -145,18 +145,19 @@ function onIsSettingsChanged ( vValue ) { if( vValue ) _mainMenu.isSettings () } function onFaultChanged ( vValue ) { page( _startupScreen , vValue )} - function onServiceChanged ( vValue ) { } + function onServiceChanged ( vValue ) { page( _startupScreen , vValue )} function onInitChanged ( vValue ) { page( _postModeScreen , vValue && ! vSettings.noCANBus ) if( vValue ) vHDPOSTData.reset() // better to reset on vinit = true because the rest makes the screen animation to run } function onHomeChanged ( vValue ) { page( _startupScreen , vValue )} function onStandbyChanged ( vValue ) { /* It depends on the subModes of the standBy. Handled by onHome. */ } function onStandbyStartChanged ( vValue ) { /* It depends on the subModes of the standBy. Handled by onHome. */ } - function onStandbyWaitTreatmentChanged ( vValue ) { /* It depends on the subModes of the standBy. Handled by onHome. */ } + function onStandbyWaitTreatmentChanged ( vValue ) { if ( vValue ) vDisinfectAdjustDisinfect.hasCancel = false } function onStandbyWaitDisinfectChanged ( vValue ) { page( _disinfectStack , vValue )} - function onValidateParametersChanged ( vValue ) { page( _preTreatmentCreateStack , vValue )} + function onValidateParametersChanged ( vValue ) { _preTreatmentCreateStack.clear ( vValue ) // vValue == true if enterig the state ( clear only on entering). + page( _preTreatmentCreateStack , vValue )} function onPreTreatmentChanged ( vValue ) { page( _preTreatmentStack , vValue )} function onInTreatmentChanged ( vValue ) { page( _treatmentStack , vValue )} function onPostTreatmentChanged ( vValue ) { page( _postTreatmentStack , vValue )}