mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
PlutoSDR input: disable manual gain setting if gain mode is not manual
This commit is contained in:
parent
5069335a50
commit
a582e0f628
@ -237,6 +237,7 @@ void PlutoSDRInputGui::on_lpFIRGain_currentIndexChanged(int index)
|
||||
void PlutoSDRInputGui::on_gainMode_currentIndexChanged(int index)
|
||||
{
|
||||
m_settings.m_gainMode = (PlutoSDRInputSettings::GainMode) (index < PlutoSDRInputSettings::GAIN_END ? index : 0);
|
||||
ui->gain->setEnabled(m_settings.m_gainMode == PlutoSDRInputSettings::GAIN_MANUAL);
|
||||
sendSettings();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user