diff options
Diffstat (limited to 'pages')
-rw-r--r-- | pages/Email.qml | 6 |
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: { |