move generate addresses action to qml state machine enter state event
This commit is contained in:
parent
15b32ddd5a
commit
d434af40e1
|
@ -76,7 +76,6 @@ proc mainProc() =
|
|||
|
||||
var onboarding = onboarding.newController(events)
|
||||
onboarding.init()
|
||||
engine.setRootContextProperty("onboardingLogic", onboarding.variant)
|
||||
engine.setRootContextProperty("onboardingModel", onboarding.variant)
|
||||
|
||||
var profile = profile.newController()
|
||||
|
|
|
@ -77,7 +77,6 @@ Page {
|
|||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
label: "I'm new, generate me a key"
|
||||
background: Rectangle {color: "transparent"}
|
||||
onClicked: onboardingLogic.generateAddresses()
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -52,7 +52,10 @@ Page {
|
|||
|
||||
DSM.State {
|
||||
id: genKeyState
|
||||
onEntered: genKey.visible = true
|
||||
onEntered: {
|
||||
genKey.visible = true
|
||||
onboardingModel.generateAddresses()
|
||||
}
|
||||
onExited: genKey.visible = false
|
||||
|
||||
DSM.SignalTransition {
|
||||
|
|
Loading…
Reference in New Issue