Skip Welcome screen when there's only one connection and it's loaded

If the connection is stuck, we can still log in to a different one that way.

(cherry picked from commit 7150445f8e)
This commit is contained in:
Tobias Fella
2024-02-12 19:56:39 +01:00
parent 8c2682c943
commit d4a6a41981

View File

@@ -110,6 +110,12 @@ FormCard.FormCardPage {
}
}
}
onCountChanged: {
if (loadingAccounts.count === 0 && loadedAccounts.count === 1 && showExisting) {
Controller.activeConnection = AccountRegistry.data(AccountRegistry.index(0, 0), 257);
root.connectionChosen();
}
}
}
}