Commit c383c372 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
parent 10d8d20a
......@@ -408,7 +408,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)
......
Supports Markdown
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