Add show-options event for VGAGainField.

This commit is contained in:
Jared Boone 2016-04-12 10:49:07 -07:00
parent 3e8b097588
commit 10b28429e4

View File

@ -117,6 +117,9 @@ AnalogAudioView::AnalogAudioView(
field_vga.on_change = [this](int32_t v_db) { field_vga.on_change = [this](int32_t v_db) {
this->on_vga_changed(v_db); this->on_vga_changed(v_db);
}; };
field_vga.on_show_options = [this]() {
this->on_show_options_rf_gain();
};
const auto modulation = receiver_model.modulation(); const auto modulation = receiver_model.modulation();
options_modulation.set_by_value(modulation); options_modulation.set_by_value(modulation);