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
visible: addPrinterByIpScreen.hasRequestInProgress || (addPrinterByIpScreen.hasRequestFinished && !addPrinterByIpScreen.isPrinterDiscovered)
textFormat: Text.RichText
text:
{
if (addPrinterByIpScreen.hasRequestFinished)
{
catalog.i18nc("@label", "Could not connect to device.")
return catalog.i18nc("@label", "Could not connect to device.");
}
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