UI: Reset menu selection when moving between submenus

replace/d3e11d46e8180b22319e69c33ae87f8a188e5524
Federico Amedeo Izzo 2020-12-20 11:00:59 +01:00
rodzic ec60dc8273
commit 7b9e3eaff2
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -478,11 +478,15 @@ void ui_updateFSM(event_t event, bool *sync_rtx)
default:
state.ui_screen = MENU_TOP;
}
// Reset menu selection
menu_selected = 0;
}
else if(msg.keys & KEY_ESC)
{
// Close Menu
state.ui_screen = MAIN_VFO;
// Reset menu selection
menu_selected = 0;
}
break;
// Settings menu screen
@ -491,6 +495,8 @@ void ui_updateFSM(event_t event, bool *sync_rtx)
{
// Return to top menu
state.ui_screen = MENU_TOP;
// Reset menu selection
menu_selected = 0;
}
break;
}