mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-25 09:32:24 -04:00
This commit provides the flowing fixes in display light functionality: - Settings-path bug causing lack of display light settings on "fresh" image. Solved with proper paths definition - Invalid settings after phone restart. Solved with proper handling of enums and booleans on the Event manager side. - No turning off light just after turning on light functionality with manual brightness setting in ApplicationSettings bug (required another key press to start timer that turns off the light after 5s). Solved by starting timer explicitly on Action::turnOn - No turning off light just after turning on the phone bug (required --as above --). Solved by starting timer explicitly on `Settings ValueChange` callback with Action::turnOn. - No autoMode until user entered `AppSettings::DisplayLight` Window. Bug caused by curve parameters being provided by the window rather than on the functionality back-end initialization. Commit also provides some code cleanup