Disable save to DF if the textfield is in an invalid state

CURA-8502
This commit is contained in:
Jaime van Kessel 2021-08-30 11:09:55 +02:00
parent 8de5e1e5b9
commit 183fbfad41

View file

@ -200,7 +200,7 @@ Item
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.right: parent.right anchors.right: parent.right
text: "Save" text: "Save"
enabled: (asProjectCheckbox.checked || asSlicedCheckbox.checked) && dfFilenameTextfield.text.length >= 1 enabled: (asProjectCheckbox.checked || asSlicedCheckbox.checked) && dfFilenameTextfield.text.length >= 1 && dfFilenameTextfield.state !== 'invalid'
onClicked: onClicked:
{ {