diff --git a/src/FactSystem/ParameterManager.cc b/src/FactSystem/ParameterManager.cc index 0ae8221c6d9f66ea9f7329d33554e5293a75832f..bd548cfb9ac09d30595447befe29f33e5aaed18f 100644 --- a/src/FactSystem/ParameterManager.cc +++ b/src/FactSystem/ParameterManager.cc @@ -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); }); });