diff options
author | Riku Isokoski <riksu9000@gmail.com> | 2022-07-21 22:16:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-21 22:16:55 +0300 |
commit | cea81fea9c2892bd9d83ff0ba9ba681db17f718f (patch) | |
tree | c6472082afb9cd4faabbd29a95d7dc11382e03c8 /src/displayapp/DisplayApp.cpp | |
parent | fdad3fc98568b5eff7c0f2729b868b8c12ce7c77 (diff) |
Always restore brightness on app switch (#1213)
Diffstat (limited to 'src/displayapp/DisplayApp.cpp')
-rw-r--r-- | src/displayapp/DisplayApp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/displayapp/DisplayApp.cpp b/src/displayapp/DisplayApp.cpp index 3174a658..731d9c01 100644 --- a/src/displayapp/DisplayApp.cpp +++ b/src/displayapp/DisplayApp.cpp @@ -130,7 +130,6 @@ void DisplayApp::InitHw() { void DisplayApp::Refresh() { auto LoadPreviousScreen = [this]() { - brightnessController.Set(settingsController.GetBrightness()); LoadApp(returnToApp, returnDirection); }; @@ -302,6 +301,8 @@ void DisplayApp::ReturnApp(Apps app, DisplayApp::FullRefreshDirections direction void DisplayApp::LoadApp(Apps app, DisplayApp::FullRefreshDirections direction) { touchHandler.CancelTap(); + brightnessController.Set(settingsController.GetBrightness()); + currentScreen.reset(nullptr); SetFullRefresh(direction); |