~aleteoryx/muditaos

74d09e5ba285a5593d4e7b89b347c6e236fe36b9 — Tomasz Rybarski 3 years ago 27385f0
[BH-1394] Frontlight On/Off on settings enter/exit

Fixed frontlight behavior on settings exit/enter
1 files changed, 2 insertions(+), 2 deletions(-)

M products/BellHybrid/apps/application-bell-settings/models/FrontlightModel.cpp
M products/BellHybrid/apps/application-bell-settings/models/FrontlightModel.cpp => products/BellHybrid/apps/application-bell-settings/models/FrontlightModel.cpp +2 -2
@@ 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 <common/models/FrontlightModel.hpp>


@@ 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());