From 7f01359fb2546115df29ae5c9478a1ee569c27fc Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Tue, 25 Jun 2024 04:28:43 +0200 Subject: [PATCH] Fix issue #142 --- ui/menu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/menu.c b/ui/menu.c index bfa43c4..b5e426f 100644 --- a/ui/menu.c +++ b/ui/menu.c @@ -750,7 +750,10 @@ void UI_DisplayMenu(void) { const uint32_t frequency = SETTINGS_FetchChannelFrequency(gSubMenuSelection); - if (!gIsInSubMenu || edit_index < 0) + //if (!gIsInSubMenu || edit_index < 0) + if (!gIsInSubMenu) + edit_index = -1; + if (edit_index < 0) { // show the channel name SETTINGS_FetchChannelName(String, gSubMenuSelection); char *pPrintStr = String[0] ? String : "--";