mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 17:27:39 +00:00
Add left key navigation out of newer menus.
TODO: Ripe for a base class or something.
This commit is contained in:
@@ -133,6 +133,7 @@ TranspondersMenuView::TranspondersMenuView(NavigationView& nav) {
|
|||||||
{ "ERT: Utility Meters", [&nav](){ nav.push<ERTAppView>(); } },
|
{ "ERT: Utility Meters", [&nav](){ nav.push<ERTAppView>(); } },
|
||||||
{ "TPMS: Cars", [&nav](){ nav.push<TPMSAppView>(); } },
|
{ "TPMS: Cars", [&nav](){ nav.push<TPMSAppView>(); } },
|
||||||
} });
|
} });
|
||||||
|
on_left = [&nav](){ nav.pop(); };
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ReceiverMenuView ******************************************************/
|
/* ReceiverMenuView ******************************************************/
|
||||||
@@ -142,6 +143,7 @@ ReceiverMenuView::ReceiverMenuView(NavigationView& nav) {
|
|||||||
{ "Audio", [&nav](){ nav.push<AnalogAudioView>(); } },
|
{ "Audio", [&nav](){ nav.push<AnalogAudioView>(); } },
|
||||||
{ "Transponders", [&nav](){ nav.push<TranspondersMenuView>(); } },
|
{ "Transponders", [&nav](){ nav.push<TranspondersMenuView>(); } },
|
||||||
} });
|
} });
|
||||||
|
on_left = [&nav](){ nav.pop(); };
|
||||||
}
|
}
|
||||||
|
|
||||||
/* SystemMenuView ********************************************************/
|
/* SystemMenuView ********************************************************/
|
||||||
|
Reference in New Issue
Block a user