mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-13 12:12:16 -04:00
Clean up UI navigation push constructor scheme.
This commit is contained in:
parent
a1aa6ecdbf
commit
97f29f8336
5 changed files with 36 additions and 28 deletions
|
@ -159,9 +159,9 @@ void AboutView::focus() {
|
|||
|
||||
SetupMenuView::SetupMenuView(NavigationView& nav) {
|
||||
add_items<3>({ {
|
||||
{ "Date/Time", [&nav](){ nav.push(new SetDateTimeView { nav }); } },
|
||||
{ "Frequency Correction", [&nav](){ nav.push(new SetFrequencyCorrectionView { nav }); } },
|
||||
{ "Touch", [&nav](){ nav.push(new NotImplementedView { nav }); } },
|
||||
{ "Date/Time", [&nav](){ nav.push<SetDateTimeView>(nav); } },
|
||||
{ "Frequency Correction", [&nav](){ nav.push<SetFrequencyCorrectionView>(nav); } },
|
||||
{ "Touch", [&nav](){ nav.push<NotImplementedView>(nav); } },
|
||||
} });
|
||||
on_left = [&nav](){ nav.pop(); };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue