mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 22:35:03 -06:00
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:
parent
d9509d25ba
commit
25292a4c7c
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue