summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 20:37:07 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 20:37:07 +0800
commit4045c2885e1446dd159263315ea70af41cd11e53 (patch)
treec1708dc90db23dec37ed0e22b0f44047f8aad294 /pages
parent5a1af88645a0889855dd121ad767f56317fa24f8 (diff)
Simplify previous commit
Diffstat (limited to 'pages')
-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: {