Commit c5057b10 authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Only emit readyChanged when we are in fact ready

Otherwise we are just notifying clients unnecessarily


(cherry picked from commit c383c372)
parent b3f7e503
......@@ -407,7 +407,10 @@ void SensorDataModel::onMetaDataChanged(const QString &sensorId, const SensorInf
SensorDaemonInterface::instance()->requestValue(sensorId);
emit sensorMetaDataChanged();
Q_EMIT readyChanged();
if (isReady()) {
Q_EMIT readyChanged();
}
}
void SensorDataModel::onValueChanged(const QString &sensorId, const QVariant &value)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment