Skip to next page when login is successful

Contributes to issue CURA-8609.
This commit is contained in:
Ghostkeeper 2021-10-05 14:20:50 +02:00
parent 0bb0c672c5
commit ec79961153
No known key found for this signature in database
GPG Key ID: 68F39EA88EEED5FF

View File

@ -102,6 +102,18 @@ Window
id: signinPage
color: UM.Theme.getColor("main_background")
Connections //While this page is active, continue to the next page if the user logs in.
{
target: Cura.API.account
function onLoginStateChanged(is_logged_in)
{
if(is_logged_in && signinPage.SwipeView.isCurrentItem)
{
swipeView.currentIndex += 1;
}
}
}
ColumnLayout
{
spacing: UM.Theme.getSize("default_margin").height