From 5b14792c769d396bd97790e1942873514b5f42f0 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 12 Oct 2021 17:30:20 +0200 Subject: [PATCH] Use 'try again' as button text if the first attempt failed Contributes to issue CURA-8609. --- resources/qml/Preferences/Materials/MaterialsSyncDialog.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml b/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml index 49ac522b1f..83195611f2 100644 --- a/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml +++ b/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml @@ -452,7 +452,7 @@ Window { id: syncButton anchors.right: parent.right - text: catalog.i18nc("@button", "Sync") + text: (typeof syncModel !== "undefined" && syncModel.exportUploadStatus == "error") ? catalog.i18nc("@button", "Try again") : catalog.i18nc("@button", "Sync") onClicked: syncModel.exportUpload() visible: {