preferencesaudiotab: fixed bug that didn't disable UI when refreshing audio devices

This commit is contained in:
itsmattkc
2020-04-28 15:39:31 +10:00
parent 64ce4642c6
commit 1b2c68c927
2 changed files with 22 additions and 6 deletions
@@ -23,6 +23,7 @@
#include <QAudioDeviceInfo>
#include <QComboBox>
#include <QPushButton>
#include "preferencestab.h"
@@ -57,6 +58,11 @@ private:
*/
QComboBox* recording_combobox_;
/**
* @brief Button that triggers a refresh of the available audio devices
*/
QPushButton* refresh_devices_btn_;
private slots:
void RefreshDevices();
@@ -67,6 +73,8 @@ private slots:
private:
void RetrieveDeviceLists();
void UpdateRefreshButtonEnabled();
static void PopulateComboBox(QComboBox* cb, bool still_refreshing, const QList<QAudioDeviceInfo>& list, const QString &preferred);
};