mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-26 04:14:25 +08:00
Fix button enabled flags
CURA-6483
This commit is contained in:
parent
dbd8d4e74c
commit
278d8ee587
@ -111,7 +111,7 @@ Item
|
|||||||
anchors.left: hostnameField.right
|
anchors.left: hostnameField.right
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
text: catalog.i18nc("@button", "Add")
|
text: catalog.i18nc("@button", "Add")
|
||||||
enabled: !addPrinterByIpScreen.hasRequestInProgress && !addPrinterByIpScreen.hasRequestFinished && (hostnameField.state != "invalid" && hostnameField.text != "")
|
enabled: !addPrinterByIpScreen.hasRequestInProgress && !addPrinterByIpScreen.isPrinterDiscovered && (hostnameField.state != "invalid" && hostnameField.text != "")
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
const address = hostnameField.text
|
const address = hostnameField.text
|
||||||
@ -278,6 +278,6 @@ Item
|
|||||||
base.showNextPage()
|
base.showNextPage()
|
||||||
}
|
}
|
||||||
|
|
||||||
enabled: addPrinterByIpScreen.hasRequestFinished && addPrinterByIpScreen.isPrinterDiscovered
|
enabled: addPrinterByIpScreen.isPrinterDiscovered
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user