Fix busy indicator.

This commit is contained in:
Black Hat 2018-07-12 14:40:51 +08:00
parent 8e3b7916b1
commit fd4499fc9e
2 changed files with 6 additions and 1 deletions

View File

@ -13,6 +13,11 @@ Controller::Controller(QObject *parent) : QObject(parent) {
&Controller::resync);
connect(m_connection, &QMatrixClient::Connection::connected, this,
&Controller::connectionChanged);
connect(m_connection, &QMatrixClient::Connection::connected,
[=] { setBusy(true); });
connect(m_connection, &QMatrixClient::Connection::syncDone,
[=] { setBusy(false); });
}
Controller::~Controller() { m_connection->stopSync(); }

View File

@ -91,7 +91,7 @@ Item {
displayMarginEnd: 40
verticalLayoutDirection: ListView.BottomToTop
maximumFlickVelocity: 1024
spacing: 12
spacing: 8
model: MessageEventModel{
id: messageEventModel