Fix busy indicator.
This commit is contained in:
parent
8e3b7916b1
commit
fd4499fc9e
|
@ -13,6 +13,11 @@ Controller::Controller(QObject *parent) : QObject(parent) {
|
||||||
&Controller::resync);
|
&Controller::resync);
|
||||||
connect(m_connection, &QMatrixClient::Connection::connected, this,
|
connect(m_connection, &QMatrixClient::Connection::connected, this,
|
||||||
&Controller::connectionChanged);
|
&Controller::connectionChanged);
|
||||||
|
|
||||||
|
connect(m_connection, &QMatrixClient::Connection::connected,
|
||||||
|
[=] { setBusy(true); });
|
||||||
|
connect(m_connection, &QMatrixClient::Connection::syncDone,
|
||||||
|
[=] { setBusy(false); });
|
||||||
}
|
}
|
||||||
|
|
||||||
Controller::~Controller() { m_connection->stopSync(); }
|
Controller::~Controller() { m_connection->stopSync(); }
|
||||||
|
|
|
@ -91,7 +91,7 @@ Item {
|
||||||
displayMarginEnd: 40
|
displayMarginEnd: 40
|
||||||
verticalLayoutDirection: ListView.BottomToTop
|
verticalLayoutDirection: ListView.BottomToTop
|
||||||
maximumFlickVelocity: 1024
|
maximumFlickVelocity: 1024
|
||||||
spacing: 12
|
spacing: 8
|
||||||
|
|
||||||
model: MessageEventModel{
|
model: MessageEventModel{
|
||||||
id: messageEventModel
|
id: messageEventModel
|
||||||
|
|
Loading…
Reference in New Issue