Unverified Commit 0c382c9a authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #6933 from patrickelectric/3rd_lambda

ParameterManager: Use 3rd parameter in connect
parents 1ecef04a 1863cded
......@@ -868,13 +868,13 @@ void ParameterManager::_tryCacheHashLoad(int vehicleId, int componentId, QVarian
ani->setEndValue(1.0);
ani->setDuration(750);
connect(ani, &QVariantAnimation::valueChanged, [this](const QVariant &value) {
connect(ani, &QVariantAnimation::valueChanged, this, [this](const QVariant &value) {
_setLoadProgress(value.toDouble());
});
// Hide 500ms after animation finishes
connect(ani, &QVariantAnimation::finished, [this](){
QTimer::singleShot(500, [this]() {
connect(ani, &QVariantAnimation::finished, this, [this] {
QTimer::singleShot(500, [this] {
_setLoadProgress(0);
});
});
......
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