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.
This commit is contained in:
Ghostkeeper 2021-10-11 13:58:05 +02:00
parent 43bcd2b56a
commit 9ffbaa772f
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -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
{