From c761820d520e3b38435e513ac2617efa2821516c Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 5 Oct 2021 13:22:33 +0200 Subject: [PATCH] Add behaviour to sign in page buttons It will now sign you in when you press that button. It doesn't automatically proceed to the next page when signed in though. For that I reckon I'll need to build that next page first, or at least the beginnings of it. Contributes to issue CURA-8609. --- resources/qml/Preferences/Materials/MaterialsSyncDialog.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml b/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml index 64c52fb7e0..ee34df3194 100644 --- a/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml +++ b/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml @@ -136,11 +136,13 @@ Window { anchors.left: parent.left text: catalog.i18nc("@button", "Sync materials with USB") + onClicked: swipeView.currentIndex = swipeView.count - 1 //Go to the last page, which is USB. } Cura.PrimaryButton { anchors.right: parent.right text: catalog.i18nc("@button", "Sign in") + onClicked: Cura.API.account.login() } } }