feat(color): Long press SYS on main screen for radio setup (#3092)

This commit is contained in:
philmoz
2023-01-25 10:19:56 +10:00
committed by GitHub
parent f7cdfdc2a9
commit 3d700f42f0
+10 -5
View File
@@ -260,15 +260,20 @@ void ViewMain::onEvent(event_t event)
new ModelLabelsWindow();
break;
// TODO:
// - use BREAK instead
// - use LONG for "Tools" page
//
case EVT_KEY_FIRST(KEY_RADIO):
case EVT_KEY_BREAK(KEY_RADIO):
if (viewMainMenu) viewMainMenu->onCancel();
new RadioMenu();
break;
case EVT_KEY_LONG(KEY_RADIO):
{
killEvents(KEY_RADIO);
// Radio setup
auto m = new RadioMenu();
m->setCurrentTab(2);
}
break;
case EVT_KEY_FIRST(KEY_TELEM):
if (viewMainMenu) viewMainMenu->onCancel();
new ScreenMenu();