From 00179ef57f0f9d47743e7fbe7a935f35d90ad6a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zieli=C5=84ski?= Date: Wed, 25 Jan 2023 19:00:27 +0100 Subject: [PATCH] [MOS-48] Shorten phone modes pop-up duration From 3s to 1s --- module-apps/apps-common/popups/HomeModesWindow.cpp | 8 +++++++- pure_changelog.md | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/module-apps/apps-common/popups/HomeModesWindow.cpp b/module-apps/apps-common/popups/HomeModesWindow.cpp index 0ad11ef578dfa466ef7618a47859db4ea7142aa1..4445685d59c1cb4f4842b172de3260c496591d36 100644 --- a/module-apps/apps-common/popups/HomeModesWindow.cpp +++ b/module-apps/apps-common/popups/HomeModesWindow.cpp @@ -9,9 +9,15 @@ #include #include +namespace +{ + constexpr auto oneSecondTimeout = std::chrono::seconds{1}; +} + namespace gui { - HomeModesWindow::HomeModesWindow(app::ApplicationCommon *app, const std::string &name) : WindowWithTimer(app, name) + HomeModesWindow::HomeModesWindow(app::ApplicationCommon *app, const std::string &name) + : WindowWithTimer(app, name, oneSecondTimeout) { buildInterface(); } diff --git a/pure_changelog.md b/pure_changelog.md index e1903d2f0ec5b2c612f9b832ce1dd86238150357..4bd3108176f96957036c8f5f35e38799ec765f6e 100644 --- a/pure_changelog.md +++ b/pure_changelog.md @@ -6,6 +6,7 @@ * Improved dialog with network via USSD * Added serial number and timestamp to crashdump filename * Changed order of starting services, ServiceDesktop moved to the back +* Shortened duration of phone modes pop-up from 3s to 1s ### Fixed * Fixed not marking thread as read when new message arrives in the opened thread