mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-13 12:12:16 -04:00
Make NavigationView an implicit first argument to any instance pushed onto nav stack.
This commit is contained in:
parent
0828c66b8a
commit
a340cbb74b
5 changed files with 20 additions and 20 deletions
|
@ -159,9 +159,9 @@ void AboutView::focus() {
|
|||
|
||||
SetupMenuView::SetupMenuView(NavigationView& nav) {
|
||||
add_items<3>({ {
|
||||
{ "Date/Time", [&nav](){ nav.push<SetDateTimeView>(nav); } },
|
||||
{ "Frequency Correction", [&nav](){ nav.push<SetFrequencyCorrectionView>(nav); } },
|
||||
{ "Touch", [&nav](){ nav.push<NotImplementedView>(nav); } },
|
||||
{ "Date/Time", [&nav](){ nav.push<SetDateTimeView>(); } },
|
||||
{ "Frequency Correction", [&nav](){ nav.push<SetFrequencyCorrectionView>(); } },
|
||||
{ "Touch", [&nav](){ nav.push<NotImplementedView>(); } },
|
||||
} });
|
||||
on_left = [&nav](){ nav.pop(); };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue