From d4a6a41981dab0c1fa5cf474c339bd5837468461 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Mon, 12 Feb 2024 19:56:39 +0100 Subject: [PATCH] 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 7150445f8e58a468ec06d1c1f07faf8587310f74) --- src/qml/WelcomePage.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/qml/WelcomePage.qml b/src/qml/WelcomePage.qml index 935bba3ca..2673d596c 100644 --- a/src/qml/WelcomePage.qml +++ b/src/qml/WelcomePage.qml @@ -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(); + } + } } }