Proper way to handle cancel signal to go back

This commit is contained in:
Angela Mazzurco 2017-07-22 18:28:41 +02:00
parent cd809165db
commit 20b2de59c5

View File

@ -64,6 +64,11 @@ Item
bottomButton.enabled = false
bottomButton.text = "Creating profile..."
}
onCancel:
{
locationView.state = "selectLocation"
}
}
},
State
@ -85,6 +90,10 @@ Item
locationView.attemptLogin = true
attemptTimer.start()
}
onCancel:
{
locationView.state = "selectLocation"
}
}
}
]