[apps/settings] Use right key to enable setting (#35)

This commit is contained in:
Yaya-Cout
2021-10-07 20:36:03 +02:00
committed by GitHub
parent 9fdedecbff
commit 553f3fc682
4 changed files with 4 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ DateTimeController::DateTimeController(Responder * parentResponder) :
bool DateTimeController::handleEvent(Ion::Events::Event event) {
bool clockEnabled = Ion::RTC::mode() != Ion::RTC::Mode::Disabled;
if (event == Ion::Events::OK || event == Ion::Events::EXE) {
if (event == Ion::Events::OK || event == Ion::Events::EXE || event == Ion::Events::Right) {
if (selectedRow() == 0) {
clockEnabled = !clockEnabled;
if (clockEnabled) {