From 0bb0c672c5fd8a2976aa6d7c6bc55a49947e8fe3 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 5 Oct 2021 14:05:08 +0200 Subject: [PATCH] Skip sign in page if already signed in Contributes to issue CURA-8609. --- .../qml/Preferences/Materials/MaterialsSyncDialog.qml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml b/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml index 88532d20e4..a852095357 100644 --- a/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml +++ b/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml @@ -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 {