refactor(@desktop/general): constants formatted in a better way

This commit is contained in:
Sale Djenic 2021-10-22 12:59:18 +02:00 committed by Iuri Matias
parent 4e3ecbf4b5
commit 80bf896265
2 changed files with 10 additions and 8 deletions

View File

@ -3,9 +3,11 @@ pragma Singleton
import QtQuick 2.13 import QtQuick 2.13
QtObject { QtObject {
readonly property int onboardingAppState: 0 property QtObject appState: QtObject {
readonly property int loginAppSate: 1 readonly property int onboarding: 0
readonly property int mainAppState: 2 readonly property int login: 1
readonly property int main: 2
}
readonly property int communityImported: 0 readonly property int communityImported: 0
readonly property int communityImportingInProgress: 1 readonly property int communityImportingInProgress: 1

View File

@ -20,7 +20,7 @@ import "./app/AppLayouts/Onboarding/views"
import "./app" import "./app"
StatusWindow { StatusWindow {
property bool hasAccounts: startupModule.appState !== Constants.onboardingAppState property bool hasAccounts: startupModule.appState !== Constants.appState.onboarding
property bool removeMnemonicAfterLogin: false property bool removeMnemonicAfterLogin: false
property alias dragAndDrop: dragTarget property alias dragAndDrop: dragTarget
property bool popupOpened: false property bool popupOpened: false
@ -354,7 +354,7 @@ StatusWindow {
DSM.SignalTransition { DSM.SignalTransition {
targetState: appState targetState: appState
signal: startupModule.appStateChanged signal: startupModule.appStateChanged
guard: state == Constants.mainAppState guard: state == Constants.appState.main
} }
} }
@ -365,7 +365,7 @@ StatusWindow {
DSM.SignalTransition { DSM.SignalTransition {
targetState: appState targetState: appState
signal: startupModule.appStateChanged signal: startupModule.appStateChanged
guard: state == Constants.mainAppState guard: state == Constants.appState.main
} }
} }
@ -376,7 +376,7 @@ StatusWindow {
DSM.SignalTransition { DSM.SignalTransition {
targetState: appState targetState: appState
signal: startupModule.appStateChanged signal: startupModule.appStateChanged
guard: state == Constants.mainAppState guard: state == Constants.appState.main
} }
} }
@ -387,7 +387,7 @@ StatusWindow {
DSM.SignalTransition { DSM.SignalTransition {
targetState: appState targetState: appState
signal: startupModule.appStateChanged signal: startupModule.appStateChanged
guard: state == Constants.mainAppState guard: state == Constants.appState.main
} }
DSM.SignalTransition { DSM.SignalTransition {