Index: sources/gui/qml/pages/MainStack.qml =================================================================== diff -u -rf68b226e67eb500758ee94fe015df48931240013 -r6c6f1f5d466badd9b4fd67be7c907234c342b2a2 --- sources/gui/qml/pages/MainStack.qml (.../MainStack.qml) (revision f68b226e67eb500758ee94fe015df48931240013) +++ sources/gui/qml/pages/MainStack.qml (.../MainStack.qml) (revision 6c6f1f5d466badd9b4fd67be7c907234c342b2a2) @@ -1,13 +1,13 @@ /*! * - * Copyright (c) 2021-2022 Diality Inc. - All Rights Reserved. + * Copyright (c) 2021-2023 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) 28-Sep-2022 + * \date (last) 14-Mar-2023 * \author (original) Behrouz NematiPour * \date (original) 01-Mar-2021 * @@ -38,6 +38,8 @@ // 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 + stackView.initialItem : _root.initialItem // Standby / Disinfection @@ -56,12 +58,6 @@ // Post Treatment PostTreatmentStack { id: _postTreatmentStack } - ScreenItem { id: _faultModeScreen - // we recently decided to not change the screen on fault and stay on current(whatever are we on currently) screen. - PlaceHolderText { screenName: qsTr("FAULT MODE") } - onVisibleChanged: if (visible) _mainMenu.hidden = true - } - ScreenItem { id: _serviceModeScreen PlaceHolderText { screenName: qsTr("SERVICE MODE") } onVisibleChanged: if (visible) _mainMenu.hidden = true @@ -82,6 +78,8 @@ value : vHDPOSTData.itemIndex width : _dialityLogo.width + 50 height : 3 + progress.border.width: 0 + border.width: 0 minText .visible: false maxText .visible: false marker .visible: false @@ -132,7 +130,7 @@ // "vHDOperationMode.fault" , vHDOperationMode .fault , // "vHDOperationMode.opMode" , vHDOperationMode .opMode ) if ( vSettings.noCANBus ) { - page( _mainHome , + page( _startupScreen , vHDOperationMode.fault || // in fault mode vHDOperationMode.init || // in initial post mode vHDOperationMode.opMode === 0 // has not even been initialized , which most probably is the case. @@ -146,13 +144,13 @@ function onIsManagerChanged ( vValue ) { if( vValue ) _mainMenu.isManager () } function onIsSettingsChanged ( vValue ) { if( vValue ) _mainMenu.isSettings () } - function onFaultChanged ( vValue ) { page( _faultModeScreen , vValue && ! vSettings.noCANBus )} - function onServiceChanged ( vValue ) { page( _serviceModeScreen , vValue )} + function onFaultChanged ( vValue ) { page( _startupScreen , vValue )} + function onServiceChanged ( 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( _mainHome , vValue )} + 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. */ }