~aleteoryx/muditaos

bee3b04efc5a814bc382325c30c40d4091a0f59f — pawpMudita 5 years ago f3566bc
[EGD-5150] Fix Crash on enter Settings Information

Loading bootCfg casues stack overflow in Settings module
and crash of application.
2 files changed, 2 insertions(+), 6 deletions(-)

M changelog.md
M module-apps/application-settings/windows/Info.cpp
M changelog.md => changelog.md +1 -0
@@ 17,6 17,7 @@
* Fix absent notifications
* Fix newly added contact recognized as a duplicate of temporary contact.
* Fix default borderCallback navigation in GridLayout.
* Fix crash on enter Settings -> Information.

## [0.52.1 2020-12-23]


M module-apps/application-settings/windows/Info.cpp => module-apps/application-settings/windows/Info.cpp +1 -6
@@ 49,12 49,7 @@ namespace gui
        addAlignedLabelWithValue(box, "GIT branch:", std::string(GIT_BRANCH));
        addAlignedLabelWithValue(box, "Version:", std::string(VERSION));
        {
            boot::BootConfig bootCfg;
            bootCfg.load();
            addAlignedLabelWithValue(box,
                                     "Bootloader:",
                                     (bootCfg.bootloader_version().empty() ? utils::localize.get("not available")
                                                                           : bootCfg.bootloader_version()));
            addAlignedLabelWithValue(box, "Bootloader:", utils::localize.get("not available"));
        }
        std::string firmwareVersion;
        CellularServiceAPI::GetFirmwareVersion(getApplication(), firmwareVersion);