refresh targets if needed
This commit is contained in:
@@ -19,10 +19,7 @@ StreamDialog::StreamDialog() : QWidget() {
|
||||
layout->addWidget(targetLabel);
|
||||
|
||||
m_targetComboBox = new QComboBox;
|
||||
m_targetComboBox->addItem("None");
|
||||
for (auto target : Virtmic::getTargets()) {
|
||||
m_targetComboBox->addItem(target);
|
||||
}
|
||||
updateTargets();
|
||||
layout->addWidget(m_targetComboBox);
|
||||
|
||||
auto qualityLabel = new QLabel;
|
||||
@@ -71,3 +68,11 @@ void StreamDialog::startStream() {
|
||||
m_qualityFPSComboBox->currentData().toUInt());
|
||||
setHidden(true);
|
||||
}
|
||||
|
||||
void StreamDialog::updateTargets() {
|
||||
m_targetComboBox->clear();
|
||||
m_targetComboBox->addItem("None");
|
||||
for (auto target : Virtmic::getTargets()) {
|
||||
m_targetComboBox->addItem(target);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user