mirror of
https://github.com/silenty4ng/uv-k5-firmware-chinese-lts
synced 2025-01-15 14:54:40 +00:00
MDC UI
This commit is contained in:
parent
eb3695c804
commit
d108f204d1
1 changed files with 19 additions and 19 deletions
38
app/menu.c
38
app/menu.c
|
@ -1430,26 +1430,8 @@ static void MENU_Key_MENU(const bool bKeyPressed, const bool bKeyHeld)
|
|||
if (UI_MENU_GetCurrentMenuId() != MENU_SCR)
|
||||
gAnotherVoiceID = MenuList[gMenuCursor].voice_id;
|
||||
#endif
|
||||
|
||||
#if 1
|
||||
if (UI_MENU_GetCurrentMenuId() == MENU_DEL_CH || UI_MENU_GetCurrentMenuId() == MENU_MEM_NAME)
|
||||
if (!RADIO_CheckValidChannel(gSubMenuSelection, false, 0))
|
||||
return; // invalid channel
|
||||
#endif
|
||||
|
||||
gAskForConfirmation = 0;
|
||||
gIsInSubMenu = true;
|
||||
|
||||
// if (UI_MENU_GetCurrentMenuId() != MENU_D_LIST)
|
||||
{
|
||||
gInputBoxIndex = 0;
|
||||
edit_index = -1;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
#ifdef ENABLE_MDC1200
|
||||
if (UI_MENU_GetCurrentMenuId() == MENU_MDC_ID)
|
||||
if (UI_MENU_GetCurrentMenuId() == MENU_MDC_ID)
|
||||
{
|
||||
if (edit_index < 0)
|
||||
{
|
||||
|
@ -1488,6 +1470,24 @@ static void MENU_Key_MENU(const bool bKeyPressed, const bool bKeyHeld)
|
|||
|
||||
else
|
||||
#endif
|
||||
#if 1
|
||||
if (UI_MENU_GetCurrentMenuId() == MENU_DEL_CH || UI_MENU_GetCurrentMenuId() == MENU_MEM_NAME)
|
||||
if (!RADIO_CheckValidChannel(gSubMenuSelection, false, 0))
|
||||
return; // invalid channel
|
||||
#endif
|
||||
|
||||
gAskForConfirmation = 0;
|
||||
gIsInSubMenu = true;
|
||||
|
||||
// if (UI_MENU_GetCurrentMenuId() != MENU_D_LIST)
|
||||
{
|
||||
gInputBoxIndex = 0;
|
||||
edit_index = -1;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (UI_MENU_GetCurrentMenuId() == MENU_MEM_NAME)
|
||||
{
|
||||
if (edit_index < 0)
|
||||
|
|
Loading…
Reference in a new issue