Commit 46df30d4 authored by David Redondo's avatar David Redondo 🏎

Hide sensors config if face does not support sensors at all

Support for applications and process table where we do not need to show the
sensors config ui.
parent a9ba62ff
......@@ -669,8 +669,11 @@ QQuickItem *SensorFaceController::sensorsConfigUi()
return d->sensorsConfigUi;
}
d->sensorsConfigUi = d->createConfigUi(QStringLiteral(":/ConfigSensors.qml"), {{QStringLiteral("controller"), QVariant::fromValue(this)}});
if (d->faceProperties.readEntry("SupportsSensors", true)) {
d->sensorsConfigUi = d->createConfigUi(QStringLiteral(":/ConfigSensors.qml"),{{QStringLiteral("controller"), QVariant::fromValue(this)}});
} else {
d->sensorsConfigUi = new QQuickItem;
}
return d->sensorsConfigUi;
}
......
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