From 365d1c0f74af821e8efb50ec5be0453469342b4b Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 5 Mar 2020 17:39:57 +0100 Subject: [PATCH] Reset 'has responded' state when pressing Add It's maybe not a good idea to remember this state only in QML. Not changing that now though. Contributes to issue CURA-7017. --- resources/qml/WelcomePages/AddPrinterByIpContent.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/qml/WelcomePages/AddPrinterByIpContent.qml b/resources/qml/WelcomePages/AddPrinterByIpContent.qml index a1ae1df7be..36ab89209a 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)) {