From ec79961153b3d25417f8639df69fbc08b3c109d6 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 5 Oct 2021 14:20:50 +0200 Subject: [PATCH] Skip to next page when login is successful Contributes to issue CURA-8609. --- .../Preferences/Materials/MaterialsSyncDialog.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml b/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml index a852095357..b4162b63e9 100644 --- a/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml +++ b/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml @@ -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