From 1d6d3d729d00a370b8487bf50069e4492336203b Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 1 Apr 2019 12:59:31 +0200 Subject: [PATCH] Once the user logged in in the cloudContent page ensure that it moves to the next. This fixes the weird situation that when logging in, the screen was still visible and the user could still press the create / sign in button. CURA-6057 --- resources/qml/WelcomePages/CloudContent.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/resources/qml/WelcomePages/CloudContent.qml b/resources/qml/WelcomePages/CloudContent.qml index c4eb9db714..f6a18ee32c 100644 --- a/resources/qml/WelcomePages/CloudContent.qml +++ b/resources/qml/WelcomePages/CloudContent.qml @@ -15,6 +15,18 @@ Item { UM.I18nCatalog { id: catalog; name: "cura" } + property bool isLoggedIn: Cura.API.account.isLoggedIn + + onIsLoggedInChanged: + { + if(isLoggedIn) + { + // If the user created an account or logged in by pressing any button on this page, all the actions that + // need / can be done by this page are completed, so we can just go to the next (if any). + base.showNextPage() + } + } + Label { id: titleLabel