mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
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:
parent
2dcf5a9c97
commit
365d1c0f74
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue