@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user