From 74d09e5ba285a5593d4e7b89b347c6e236fe36b9 Mon Sep 17 00:00:00 2001 From: Tomasz Rybarski Date: Tue, 15 Feb 2022 14:54:21 +0100 Subject: [PATCH] [BH-1394] Frontlight On/Off on settings enter/exit Fixed frontlight behavior on settings exit/enter --- .../apps/application-bell-settings/models/FrontlightModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/products/BellHybrid/apps/application-bell-settings/models/FrontlightModel.cpp b/products/BellHybrid/apps/application-bell-settings/models/FrontlightModel.cpp index 1fbaae4f6e1a20283c5b0900d41f3e360cf2d133..4a0ea4f08fe96a86003d6a403744bb6e5cc5f975 100644 --- a/products/BellHybrid/apps/application-bell-settings/models/FrontlightModel.cpp +++ b/products/BellHybrid/apps/application-bell-settings/models/FrontlightModel.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. +// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include @@ -86,10 +86,10 @@ namespace app::bell_settings void FrontlightModel::revertUnsavedChanges() { - setStatus(false); if (!hasUnsavedChanges) { return; } + setStatus(false); setMode(modeAdapter->getValue() == autoStr ? screen_light_control::ScreenLightMode::Automatic : screen_light_control::ScreenLightMode::Manual); setBrightness(brightnessAdapter->getValue());