Add link to help pages if it can't connect

I don't know what the link is supposed to be linking to though. Yet.

Contributes to issue CURA-7017.
This commit is contained in:
Ghostkeeper 2020-03-05 13:16:54 +01:00
parent d9509d25ba
commit 25292a4c7c
No known key found for this signature in database
GPG Key ID: 37E2020986774393

View File

@ -197,17 +197,20 @@ Item
renderType: Text.NativeRendering renderType: Text.NativeRendering
visible: addPrinterByIpScreen.hasRequestInProgress || (addPrinterByIpScreen.hasRequestFinished && !addPrinterByIpScreen.isPrinterDiscovered) visible: addPrinterByIpScreen.hasRequestInProgress || (addPrinterByIpScreen.hasRequestFinished && !addPrinterByIpScreen.isPrinterDiscovered)
textFormat: Text.RichText
text: text:
{ {
if (addPrinterByIpScreen.hasRequestFinished) if (addPrinterByIpScreen.hasRequestFinished)
{ {
catalog.i18nc("@label", "Could not connect to device.") return catalog.i18nc("@label", "Could not connect to device.");
} }
else else
{ {
catalog.i18nc("@label", "The printer at this address has not responded yet.") return catalog.i18nc("@label", "The printer at this address has not responded yet.") + "<br /><br /><a href=\"https://www.ultimaker.com/\">"
+ catalog.i18nc("@label", "Can't connect to your printer?") + "</a>";
} }
} }
onLinkActivated: Qt.openUrlExternally(link)
} }
Item Item