Disable login button when login begins. #63

This commit is contained in:
Black Hat 2018-10-13 15:50:39 +08:00
parent 0c1a90bf5d
commit 8500c5f34b
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,8 @@ LoginForm {
return return
} }
loginButton.text = "Logining in..."
loginButton.enabled = false
controller.loginWithCredentials(serverField.text, usernameField.text, passwordField.text) controller.loginWithCredentials(serverField.text, usernameField.text, passwordField.text)
controller.connectionAdded.connect(function() { stackView.pop() }) controller.connectionAdded.connect(function() { stackView.pop() })