From 4fb5a38fa235eedcb9cc1540718a726ad40b2570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kamo=C5=84?= Date: Tue, 1 Jun 2021 13:43:10 +0200 Subject: [PATCH] [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. --- module-apps/application-desktop/windows/UpdateProgress.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module-apps/application-desktop/windows/UpdateProgress.cpp b/module-apps/application-desktop/windows/UpdateProgress.cpp index 30be1d68311777c8b0a311283379e61dfffa421b..71f4f1b6d10c39b3b08bcbc5d08bb5fc049f2129 100644 --- a/module-apps/application-desktop/windows/UpdateProgress.cpp +++ b/module-apps/application-desktop/windows/UpdateProgress.cpp @@ -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(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]