Commit 3a6d37bb authored by David Redondo's avatar David Redondo 🏎
Browse files

Only change colors and emit signal if colors really changed

Fixes an endless changes loop and freeze when saving as soon as the sensors config changes.
parent 094a23ab
......@@ -362,6 +362,10 @@ QVariantMap SensorFaceController::sensorColors() const
void SensorFaceController::setSensorColors(const QVariantMap &colors)
{
if (colors == this->sensorColors()) {
return;
}
d->colorsGroup.deleteGroup();
d->colorsGroup = KConfigGroup(&d->configGroup, "SensorColors");
......
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