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{};
}