From 16e8099ba3e674c37ed5f9efc67905a0a5dbc1b7 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Wed, 30 Oct 2019 21:32:37 -0400 Subject: [PATCH] Change willDisplayCellForIndex for LED indices --- apps/settings/main_controller.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/settings/main_controller.cpp b/apps/settings/main_controller.cpp index bc1bba672..d05289721 100644 --- a/apps/settings/main_controller.cpp +++ b/apps/settings/main_controller.cpp @@ -172,8 +172,16 @@ void MainController::willDisplayCellForIndex(HighlightCell * cell, int index) { case 3: childIndex = (int)preferences->complexFormat(); break; - case 7: - childIndex = (int)preferences->colorOfLED(); + //after prompt + case 8: + if (!hasPrompt()) { + childIndex = (int)preferences->colorOfLED(); + } + break; + case 9: + if (hasPrompt()) { + childIndex = (int)preferences->colorOfLED(); + } break; } I18n::Message message = childIndex >= 0 ? model()->children(index)->children(childIndex)->label() : I18n::Message::Default;