1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(settings): Initialize gain slider to correct position

Fix #6285
This commit is contained in:
Anthony Bilinski 2021-01-23 04:34:55 -08:00
parent 7a683fa5c2
commit ce1ecb4234
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -82,7 +82,9 @@ AVForm::AVForm(IAudioControl& audio, CoreAV* coreAV, CameraSource& camera,
microphoneSlider->setTracking(false); microphoneSlider->setTracking(false);
microphoneSlider->installEventFilter(this); microphoneSlider->installEventFilter(this);
microphoneSlider->setValue( microphoneSlider->setValue(
getStepsFromValue(audio.inputGain(), audio.minInputGain(), audio.maxInputGain())); getStepsFromValue(audioSettings->getAudioInGainDecibel(),
audio.minInputGain(),
audio.maxInputGain()));
audioThresholdSlider->setToolTip(tr("Use slider to set the activation volume for your" audioThresholdSlider->setToolTip(tr("Use slider to set the activation volume for your"
" input device.")); " input device."));