Automatically select account after login. #63

This commit is contained in:
Black Hat 2018-10-13 16:12:59 +08:00
parent 67cc9a0433
commit fa3082ca6b
1 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,9 @@ LoginForm {
loginButton.enabled = false
controller.loginWithCredentials(serverField.text, usernameField.text, passwordField.text)
controller.connectionAdded.connect(function() { stackView.pop() })
controller.connectionAdded.connect(function(conn) {
stackView.pop()
accountListView.currentConnection = conn
})
}
}