mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-03 14:34:57 -04:00
PlutoSDR input: disable manual gain setting if gain mode is not manual
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user