From a0399013883a336733885ee4faf7dfb90d3d21f0 Mon Sep 17 00:00:00 2001 From: Maschell Date: Thu, 5 Jan 2023 20:51:37 +0100 Subject: [PATCH] Fix the scroll indicator in config menu --- source/utils/ConfigUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/utils/ConfigUtils.cpp b/source/utils/ConfigUtils.cpp index ce4fe48..708b5d2 100644 --- a/source/utils/ConfigUtils.cpp +++ b/source/utils/ConfigUtils.cpp @@ -385,7 +385,7 @@ void ConfigUtils::displayMenu() { // draw scroll indicator DrawUtils::setFontSize(24); - if (end < configs.size()) { + if (end < cats.size()) { DrawUtils::print(SCREEN_WIDTH / 2 + 12, SCREEN_HEIGHT - 32, "\ufe3e", true); } if (start > 0) { @@ -550,7 +550,7 @@ void ConfigUtils::displayMenu() { DrawUtils::print(SCREEN_WIDTH - 16, SCREEN_HEIGHT - 10, "\ue000 / \ue07e Toggle", true); // draw scroll indicator DrawUtils::setFontSize(24); - if (end < configs.size()) { + if (end < config_items.size()) { DrawUtils::print(SCREEN_WIDTH / 2 + 12, SCREEN_HEIGHT - 32, "\ufe3e", true); } if (start > 0) {