mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
auto-update audio devices list on tab show
This commit is contained in:
parent
92c330b7bd
commit
85718fa637
|
@ -33,9 +33,6 @@ AVForm::AVForm() :
|
|||
bodyUI = new Ui::AVSettings;
|
||||
bodyUI->setupUi(this);
|
||||
|
||||
getAudioOutDevices();
|
||||
getAudioInDevices();
|
||||
|
||||
connect(Camera::getInstance(), &Camera::propProbingFinished, this, &AVForm::onPropProbingFinished);
|
||||
connect(Camera::getInstance(), &Camera::resolutionProbingFinished, this, &AVForm::onResProbingFinished);
|
||||
|
||||
|
@ -51,6 +48,9 @@ AVForm::~AVForm()
|
|||
|
||||
void AVForm::present()
|
||||
{
|
||||
getAudioOutDevices();
|
||||
getAudioInDevices();
|
||||
|
||||
bodyUI->CamVideoSurface->setSource(Camera::getInstance());
|
||||
|
||||
Camera::getInstance()->probeProp(Camera::SATURATION);
|
||||
|
|
Loading…
Reference in New Issue
Block a user