diff options
| author | kieranc <kieranc@gmail.com> | 2021-11-15 18:21:35 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-15 18:21:35 (GMT) |
| commit | 2fa63c7f37f2441b7e126b83ed0da1896ca25fe9 (patch) | |
| tree | 6a0928597f81e03da69ac8243afbb2bdc755377f /src/displayapp/DisplayApp.cpp | |
| parent | 18e3cc7038d0f6c0cebc5d042e0740f968f890db (diff) | |
| parent | 2e7b51c8e1cb32833f1d07a499fd6a848f1bf96e (diff) | |
Merge pull request #1 from Riksu9000/pts-settings-fix
Close customizer menu with button in PTS
Diffstat (limited to 'src/displayapp/DisplayApp.cpp')
| -rw-r--r-- | src/displayapp/DisplayApp.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/displayapp/DisplayApp.cpp b/src/displayapp/DisplayApp.cpp index 342c387..4e508ee 100644 --- a/src/displayapp/DisplayApp.cpp +++ b/src/displayapp/DisplayApp.cpp @@ -249,10 +249,10 @@ void DisplayApp::Refresh() { } } break; case Messages::ButtonPushed: - if (currentApp == Apps::Clock) { - PushMessageToSystemTask(System::Messages::GoToSleep); - } else { - if (!currentScreen->OnButtonPushed()) { + if (!currentScreen->OnButtonPushed()) { + if (currentApp == Apps::Clock) { + PushMessageToSystemTask(System::Messages::GoToSleep); + } else { LoadApp(returnToApp, returnDirection); brightnessController.Set(settingsController.GetBrightness()); brightnessController.Backup(); |
