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.
This commit is contained in:
Ghostkeeper 2020-03-05 17:39:57 +01:00
parent 2dcf5a9c97
commit 365d1c0f74
No known key found for this signature in database
GPG key ID: 37E2020986774393

View file

@ -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))
{