From 9ffbaa772f55d1655469be8caf33bf8bd09a7997 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 11 Oct 2021 13:58:05 +0200 Subject: [PATCH] Add back button to return from USB workflow to welcome screen This allows the user to see the welcome screen instructions again. Or to switch back to internet-syncing if they accidentally pressed the USB button (or were just curious). Contributes to issue CURA-8609. --- .../Preferences/Materials/MaterialsSyncDialog.qml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml b/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml index 7df25d3253..3b57f5c28d 100644 --- a/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml +++ b/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml @@ -491,6 +491,14 @@ Window anchors.verticalCenter: parent.verticalCenter } } + + Cura.TertiaryButton + { + text: catalog.i18nc("@button", "How to load new material profiles to my printer") + iconSource: UM.Theme.getIcon("LinkExternal") + onClicked: Qt.openUrlExternally("https://support.ultimaker.com/hc/en-us/articles/360013137919?utm_source=cura&utm_medium=software&utm_campaign=sync-material-wizard-how-usb") + } + Item { width: parent.width @@ -498,12 +506,11 @@ Window Layout.preferredWidth: width Layout.preferredHeight: height - Cura.TertiaryButton + Cura.SecondaryButton { anchors.left: parent.left - text: catalog.i18nc("@button", "How to load new material profiles to my printer") - iconSource: UM.Theme.getIcon("LinkExternal") - onClicked: Qt.openUrlExternally("https://support.ultimaker.com/hc/en-us/articles/360013137919?utm_source=cura&utm_medium=software&utm_campaign=sync-material-wizard-how-usb") + text: catalog.i18nc("@button", "Back") + onClicked: swipeView.currentIndex = 0 //Reset to first page. } Cura.PrimaryButton {