Use 'try again' as button text if the first attempt failed

Contributes to issue CURA-8609.
This commit is contained in:
Ghostkeeper 2021-10-12 17:30:20 +02:00
parent c2057c94db
commit 5b14792c76
No known key found for this signature in database
GPG key ID: 68F39EA88EEED5FF

View file

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