mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix avform mic slider enabling
This commit is contained in:
parent
ce2f8fd1d5
commit
f57bf331d6
|
@ -339,7 +339,7 @@ void AVForm::onInDevChanged(QString deviceDescriptor)
|
|||
Settings::getInstance().setInDev(deviceDescriptor);
|
||||
Audio& audio = Audio::getInstance();
|
||||
audio.reinitInput(deviceDescriptor);
|
||||
bodyUI->microphoneSlider->setEnabled(audio.isInputReady());
|
||||
bodyUI->microphoneSlider->setEnabled(bodyUI->inDevCombobox->currentIndex() != 0);
|
||||
bodyUI->microphoneSlider->setSliderPosition(audio.inputVolume() * 100.f);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user