Release sound card handling

This commit is contained in:
hawkeyexp 2018-07-16 07:58:21 +02:00
parent c82ea93668
commit 093e79cd7a
2 changed files with 22 additions and 2 deletions

View File

@ -445,6 +445,16 @@ void SettingsWindow::loadSystemValues()
}
}
system("/usr/local/bin/autoapp_helper getdefaultoutput");
if (rFile.exists()) {
QFile returnFile(QString("/tmp/return_value"));
returnFile.open(QIODevice::ReadOnly);
QTextStream data_return(&returnFile);
QStringList defoutput = data_return.readAll().split("\n");
returnFile.close();
ui_->comboBoxPulseOutput->setCurrentText(defoutput[0]);
}
system("/usr/local/bin/autoapp_helper getinputs");
if (rFile.exists()) {
QFile returnFile(QString("/tmp/return_value"));
@ -465,6 +475,16 @@ void SettingsWindow::loadSystemValues()
}
}
system("/usr/local/bin/autoapp_helper getdefaultinput");
if (rFile.exists()) {
QFile returnFile(QString("/tmp/return_value"));
returnFile.open(QIODevice::ReadOnly);
QTextStream data_return(&returnFile);
QStringList definput = data_return.readAll().split("\n");
returnFile.close();
ui_->comboBoxPulseInput->setCurrentText(definput[0]);
}
}
void SettingsWindow::onShowBindings()

View File

@ -676,7 +676,7 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}</string>
</font>
</property>
<property name="text">
<string>To activate changed audio device you have to reboot!</string>
<string>To activate changed audio device you have to disconnect/reconnect phone!</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
@ -688,7 +688,7 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}</string>
<widget class="QLabel" name="labelSettingsInfo_Icon_2">
<property name="geometry">
<rect>
<x>90</x>
<x>20</x>
<y>114</y>
<width>31</width>
<height>31</height>