Update libqmatrixclient.

Enable member lazy loading.
Some Qt 5.12 fix.
This commit is contained in:
Black Hat
2018-12-15 10:46:18 +08:00
parent 66e2d99620
commit 8300d022b2
9 changed files with 18 additions and 15 deletions

View File

@@ -42,7 +42,12 @@ Controller::Controller(QObject* parent)
QTimer::singleShot(0, this, SLOT(invokeLogin()));
}
Controller::~Controller() {}
Controller::~Controller() {
for (Connection* c : m_connections) {
c->stopSync();
c->saveState();
}
}
inline QString accessTokenFileName(const AccountSettings& account) {
QString fileName = account.userId();
@@ -107,6 +112,8 @@ void Controller::addConnection(Connection* c) {
m_connections.push_back(c);
c->setLazyLoading(true);
connect(c, &Connection::syncDone, this, [=] {
emit syncDone();
c->sync(30000);