Commit acf19e36 authored by David Redondo's avatar David Redondo 🏎
Browse files

Reload everything when reloading the config

We cache these values and should also reload them when reloading the config.
parent 70ced775
......@@ -600,6 +600,10 @@ void SensorFaceController::reloadConfig()
d->faceConfigLoader->load();
}
d->totalSensors = d->resolveSensors(d->readAndUpdateSensors(d->sensorsGroup, QStringLiteral("totalSensors")));
d->lowPrioritySensorIds = d->resolveSensors(d->readAndUpdateSensors(d->sensorsGroup, QStringLiteral("lowPrioritySensorIds")));
d->highPrioritySensorIds = d->resolveSensors(d->readAndUpdateSensors(d->sensorsGroup, QStringLiteral("highPrioritySensorIds")));
//Force to re-read all the values
setFaceId(d->appearanceGroup.readEntry("chartFace", QStringLiteral("org.kde.ksysguard.textonly")));
titleChanged();
......
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