refactor(@desktop/general): constants formatted in a better way
This commit is contained in:
parent
4e3ecbf4b5
commit
80bf896265
|
@ -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
|
||||||
|
|
10
ui/main.qml
10
ui/main.qml
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue