~aleteoryx/muditaos

4fb5a38fa235eedcb9cc1540718a726ad40b2570 — Michał Kamoń 4 years ago 8078dd2
[EGD-6397] Add no autolock on OSUpdate

This commit enables `preventsAutoLock` in `UpdateProgress` window
to ensure that no autolock event occurs while OSUpdate is in progress.
1 files changed, 2 insertions(+), 1 deletions(-)

M module-apps/application-desktop/windows/UpdateProgress.cpp
M module-apps/application-desktop/windows/UpdateProgress.cpp => module-apps/application-desktop/windows/UpdateProgress.cpp +2 -1
@@ 27,6 27,7 @@ namespace gui
        : AppWindow(app, app::window::name::desktop_update_progress)
    {
        buildInterface();
        preventsAutoLock = true;
    }

    void UpdateProgressWindow::onBeforeShow(ShowMode mode, SwitchData *data)


@@ 37,7 38,7 @@ namespace gui
        else {
            auto *item = dynamic_cast<gui::UpdateSwitchData *>(data);
            if (item != nullptr) {
                auto msg   = item->getUpdateOsMessage();
                const auto &msg = item->getUpdateOsMessage();
                updateFile = msg.updateStats.updateFile;
                auto updateVersion =
                    msg.updateStats.versionInformation[boot::json::os_version][boot::json::version_string]