mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 11:39:03 +08: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
@ -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…
x
Reference in New Issue
Block a user