Skip sign in page if already signed in

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

View File

@ -71,7 +71,16 @@ Window
bottomMargin: UM.Theme.getSize("default_margin").height
}
text: catalog.i18nc("@button", "Start")
onClicked: swipeView.currentIndex += 1
onClicked: {
if(Cura.API.account.isLoggedIn)
{
swipeView.currentIndex += 2; //Skip sign in page.
}
else
{
swipeView.currentIndex += 1;
}
}
}
Cura.TertiaryButton
{