mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-04 22:27:53 -04: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)
|
void PlutoSDRInputGui::on_gainMode_currentIndexChanged(int index)
|
||||||
{
|
{
|
||||||
m_settings.m_gainMode = (PlutoSDRInputSettings::GainMode) (index < PlutoSDRInputSettings::GAIN_END ? index : 0);
|
m_settings.m_gainMode = (PlutoSDRInputSettings::GainMode) (index < PlutoSDRInputSettings::GAIN_END ? index : 0);
|
||||||
|
ui->gain->setEnabled(m_settings.m_gainMode == PlutoSDRInputSettings::GAIN_MANUAL);
|
||||||
sendSettings();
|
sendSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user