diff --git a/resources/qml/WelcomePages/AddPrinterByIpContent.qml b/resources/qml/WelcomePages/AddPrinterByIpContent.qml index 5ab0217f01..c73aa3958e 100644 --- a/resources/qml/WelcomePages/AddPrinterByIpContent.qml +++ b/resources/qml/WelcomePages/AddPrinterByIpContent.qml @@ -159,6 +159,7 @@ Item enabled: !addPrinterByIpScreen.hasRequestInProgress && !addPrinterByIpScreen.isPrinterDiscovered && (hostnameField.state != "invalid" && hostnameField.text != "") onClicked: { + addPrinterByIpScreen.hasRequestFinished = false //In case it's pressed multiple times. const address = hostnameField.text if (!networkingUtil.isValidIP(address)) { @@ -197,17 +198,21 @@ 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.") + "

" + + catalog.i18nc("@label", "Can't connect to your Ultimaker printer?") + ""; } 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.") + "

" + + catalog.i18nc("@label", "Can't connect to your Ultimaker printer?") + ""; } } + onLinkActivated: Qt.openUrlExternally(link) } Item