This commit is contained in:
wu58430 2023-12-04 23:03:25 +08:00
parent f22d907f2b
commit a74130c02f

View file

@ -1418,7 +1418,15 @@ static void MENU_Key_MENU(const bool bKeyPressed, const bool bKeyHeld) {
memmove(edit_original, edit, sizeof(edit_original)); memmove(edit_original, edit, sizeof(edit_original));
} }
else if (edit_index >= 0 && edit_index < 4)
}
#endif
return;
}
if (UI_MENU_GetCurrentMenuId() == MENU_MDC_ID&&edit_index >= 0 && edit_index < 4)
{ // editing the channel name characters { // editing the channel name characters
if (++edit_index < 4) if (++edit_index < 4)
@ -1438,14 +1446,6 @@ static void MENU_Key_MENU(const bool bKeyPressed, const bool bKeyHeld) {
} }
} }
}
#endif
return;
}
if (UI_MENU_GetCurrentMenuId() == MENU_MEM_NAME) { if (UI_MENU_GetCurrentMenuId() == MENU_MEM_NAME) {
if (edit_index < 0) { // enter channel name edit mode if (edit_index < 0) { // enter channel name edit mode
if (!RADIO_CheckValidChannel(gSubMenuSelection, false, 0)) if (!RADIO_CheckValidChannel(gSubMenuSelection, false, 0))