From 4045c2885e1446dd159263315ea70af41cd11e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Thu, 12 Sep 2019 20:37:07 +0800 Subject: Simplify previous commit --- pages/Email.qml | 6 ++---- 1 file 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: { -- cgit v1.2.3