This commit is contained in:
wu58430 2023-12-04 23:13:13 +08:00
parent 4b6323e780
commit d5072c23d6

View file

@ -1434,17 +1434,17 @@ static void MENU_Key_MENU(const bool bKeyPressed, const bool bKeyHeld) {
// exit // exit
if (memcmp(edit_original, edit, sizeof(edit_original)) == 0) if (memcmp(edit_original, edit, sizeof(edit_original)) == 0)
{ // no change - drop it { // no change - drop it
gFlagAcceptSetting = false; // gFlagAcceptSetting = false;
gIsInSubMenu = false; gIsInSubMenu = false;
gAskForConfirmation = 0; // gAskForConfirmation = 0;
} }
else // else
{ // {
//
// }
gFlagAcceptSetting = false; gFlagAcceptSetting = false;
gAskForConfirmation = 0; gAskForConfirmation = 0;
} }
}
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))