From fa3082ca6b46713b4bbd4f356fa267758ca1fb7e Mon Sep 17 00:00:00 2001 From: Black Hat Date: Sat, 13 Oct 2018 16:12:59 +0800 Subject: [PATCH] Automatically select account after login. #63 --- imports/Spectral/Page/Login.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/imports/Spectral/Page/Login.qml b/imports/Spectral/Page/Login.qml index b949e86..105557e 100644 --- a/imports/Spectral/Page/Login.qml +++ b/imports/Spectral/Page/Login.qml @@ -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 + }) } }