mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 20:45:57 +08: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
@ -159,6 +159,7 @@ Item
|
|||||||
enabled: !addPrinterByIpScreen.hasRequestInProgress && !addPrinterByIpScreen.isPrinterDiscovered && (hostnameField.state != "invalid" && hostnameField.text != "")
|
enabled: !addPrinterByIpScreen.hasRequestInProgress && !addPrinterByIpScreen.isPrinterDiscovered && (hostnameField.state != "invalid" && hostnameField.text != "")
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
|
addPrinterByIpScreen.hasRequestFinished = false //In case it's pressed multiple times.
|
||||||
const address = hostnameField.text
|
const address = hostnameField.text
|
||||||
if (!networkingUtil.isValidIP(address))
|
if (!networkingUtil.isValidIP(address))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user