mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-15 05:02:13 -04:00
Move nav back button outside of ReceiverView.
This commit is contained in:
parent
029a44e24c
commit
15800eea33
4 changed files with 40 additions and 12 deletions
|
@ -369,7 +369,6 @@ ReceiverView::ReceiverView(
|
|||
&rssi,
|
||||
&channel,
|
||||
&audio,
|
||||
&button_done,
|
||||
&field_frequency,
|
||||
&field_lna,
|
||||
//&options_baseband_bandwidth,
|
||||
|
@ -381,10 +380,6 @@ ReceiverView::ReceiverView(
|
|||
&view_rf_gain_options,
|
||||
} });
|
||||
|
||||
button_done.on_select = [&nav](Button&){
|
||||
nav.pop();
|
||||
};
|
||||
|
||||
field_frequency.set_value(receiver_model.tuning_frequency());
|
||||
field_frequency.set_step(receiver_model.frequency_step());
|
||||
field_frequency.on_change = [this](rf::Frequency f) {
|
||||
|
@ -480,7 +475,7 @@ void ReceiverView::on_hide() {
|
|||
}
|
||||
|
||||
void ReceiverView::focus() {
|
||||
button_done.focus();
|
||||
field_frequency.focus();
|
||||
}
|
||||
|
||||
void ReceiverView::on_tuning_frequency_changed(rf::Frequency f) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue