UI: Selecting a Channel in the Channel menu switches to MEM mode with that channel

replace/89687bd05763e2fd943b732c862df284256cdb54
Federico Amedeo Izzo 2021-01-26 20:57:39 +01:00
rodzic c4e7e2962c
commit 5311183c8a
1 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

@ -761,6 +761,18 @@ void ui_updateFSM(event_t event, bool *sync_rtx)
ui_state.menu_selected += 1;
}
}
else if(msg.keys & KEY_ENTER)
{
if(state.ui_screen == MENU_CHANNEL)
{
// If we were in VFO mode, save VFO channel
if(ui_state.last_main_state == MAIN_VFO)
state.vfo_channel = state.channel;
_ui_fsm_loadChannel(ui_state.menu_selected, sync_rtx);
// Switch to MEM screen
state.ui_screen = MAIN_MEM;
}
}
else if(msg.keys & KEY_ESC)
{
// Return to top menu