mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-15 21:22:38 -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
|
@ -423,12 +423,11 @@ ReceiverView::ReceiverView(
|
|||
};
|
||||
field_frequency.on_edit = [this, &nav]() {
|
||||
// TODO: Provide separate modal method/scheme?
|
||||
auto new_view = new FrequencyKeypadView { nav, this->receiver_model.tuning_frequency() };
|
||||
auto new_view = nav.push<FrequencyKeypadView>(nav, this->receiver_model.tuning_frequency());
|
||||
new_view->on_changed = [this](rf::Frequency f) {
|
||||
this->on_tuning_frequency_changed(f);
|
||||
this->field_frequency.set_value(f);
|
||||
};
|
||||
nav.push(new_view);
|
||||
};
|
||||
field_frequency.on_show_options = [this]() {
|
||||
this->on_show_options_frequency();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue