~aleteoryx/muditaos

b792bd7735afb34e201d3a2fb81d079e85625241 — Lukasz Mastalerz 2 years ago a2cef32
[BH-1625] The shutdown window doesn't appear while closing the system

Fixed the problem with the not appearing system closing window in some cases
2 files changed, 8 insertions(+), 9 deletions(-)

M harmony_changelog.md
M module-services/service-gui/ServiceGUI.cpp
M harmony_changelog.md => harmony_changelog.md +1 -0
@@ 22,6 22,7 @@
* Fixed occasional USB crash when USB cable was disconnected during files upload
* Fixed back button power off timer changed to 10s
* Fixed alarm problems when it was re-set while snooze was still active
* Fixed the problem with the not appearing system closing window in some cases

### Added


M module-services/service-gui/ServiceGUI.cpp => module-services/service-gui/ServiceGUI.cpp +7 -9
@@ 1,4 1,4 @@
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "ServiceGUI.hpp"


@@ 234,15 234,13 @@ namespace service::gui
        contextPool->returnContext(contextId);
        contextReleaseTimer.stop();

        if (isClosing) {
            sendCloseReadyMessage(this);
        // Even if the next render is already cached, if any context in the pool is currently being processed, then
        // we better wait for it.
        if (isNextFrameReady() and not isAnyFrameBeingRenderedOrDisplayed()) {
            trySendNextFrame();
        }
        else {
            // Even if the next render is already cached, if any context in the pool is currently being processed, then
            // we better wait for it.
            if (isNextFrameReady() and not isAnyFrameBeingRenderedOrDisplayed()) {
                trySendNextFrame();
            }
        else if (isClosing) {
            sendCloseReadyMessage(this);
        }
        return sys::MessageNone{};
    }