mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-22 12:39:22 +08:00
Skip to next page when login is successful
Contributes to issue CURA-8609.
This commit is contained in:
parent
0bb0c672c5
commit
ec79961153
@ -102,6 +102,18 @@ Window
|
|||||||
id: signinPage
|
id: signinPage
|
||||||
color: UM.Theme.getColor("main_background")
|
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
|
ColumnLayout
|
||||||
{
|
{
|
||||||
spacing: UM.Theme.getSize("default_margin").height
|
spacing: UM.Theme.getSize("default_margin").height
|
||||||
|
Loading…
x
Reference in New Issue
Block a user