Fix loading

(cherry picked from commit d14466451d)
This commit is contained in:
Tobias Fella
2025-08-01 12:11:35 +02:00
parent fd18f88adf
commit a4f2d8fca1

View File

@@ -86,6 +86,14 @@ void LoginHelper::init()
m_accountManager->addConnection(m_connection);
m_accountManager->setActiveConnection(m_connection);
disconnect(m_connection, nullptr, this, nullptr);
connect(
m_connection.get(),
&NeoChatConnection::syncDone,
this,
[this]() {
Q_EMIT loaded();
},
Qt::SingleShotConnection);
m_connection = nullptr;
});
connect(m_connection, &NeoChatConnection::networkError, this, [this](QString error, const QString &, int, int) {
@@ -106,15 +114,6 @@ void LoginHelper::init()
connect(m_connection, &NeoChatConnection::resolveError, this, [this](QString error) {
Q_EMIT m_connection->errorOccured(i18n("Network Error: %1", std::move(error)));
});
connect(
m_connection.get(),
&NeoChatConnection::syncDone,
this,
[this]() {
Q_EMIT loaded();
},
Qt::SingleShotConnection);
}
void LoginHelper::setHomeserverReachable(bool reachable)