summaryrefslogtreecommitdiff
path: root/pages/Email.qml
diff options
context:
space:
mode:
Diffstat (limited to 'pages/Email.qml')
-rw-r--r--pages/Email.qml6
1 files changed, 2 insertions, 4 deletions
diff --git a/pages/Email.qml b/pages/Email.qml
index 22dc412..a78f655 100644
--- a/pages/Email.qml
+++ b/pages/Email.qml
@@ -7,10 +7,8 @@ EmailForm {
backButton.onClicked: stackView.pop()
emailTextField.onTextChanged: {
- if (!emailTextField.text)
- loginButton.enabled = false
- else if (!loginButton.enabled)
- loginButton.enabled = true
+ if (!emailTextField.text || !loginButton.enabled)
+ loginButton.enabled = !loginButton.enabled
}
loginButton.onClicked: {