~aleteoryx/muditaos

084cf317dbde152f57c5a6d99b0b4057da1c18d8 — Paweł Joński 4 years ago 148b40f
[BH-1192] Powernap counting stops at zero

Powernap counting stops at zero
1 files changed, 1 insertions(+), 1 deletions(-)

M module-apps/apps-common/widgets/ProgressTimer.cpp
M module-apps/apps-common/widgets/ProgressTimer.cpp => module-apps/apps-common/widgets/ProgressTimer.cpp +1 -1
@@ 55,6 55,7 @@ namespace app
    auto ProgressTimer::onTimerTimeout(sys::Timer &task) -> bool
    {
        ++elapsed;
        update();
        if (isStopped() || isFinished()) {
            task.stop();
            if (isFinished() && onFinishedCallback != nullptr) {


@@ 66,7 67,6 @@ namespace app
        if ((intervalReached() || isFinished()) && onIntervalCallback != nullptr) {
            onIntervalCallback();
        }
        update();
        return true;
    }