mirror of
https://github.com/PabloMK7/citra
synced 2024-11-15 13:18:24 +00:00
Config: Restore previously selected audio sink option (#1824)
This commit is contained in:
parent
af258584d9
commit
98923ab6e5
1 changed files with 3 additions and 3 deletions
|
@ -28,14 +28,14 @@ ConfigureAudio::~ConfigureAudio() {
|
|||
}
|
||||
|
||||
void ConfigureAudio::setConfiguration() {
|
||||
int new_sink_index = 0;
|
||||
for (int index = 0; index < ui->output_sink_combo_box->count(); index++) {
|
||||
if (ui->output_sink_combo_box->itemText(index).toStdString() == Settings::values.sink_id) {
|
||||
ui->output_sink_combo_box->setCurrentIndex(index);
|
||||
new_sink_index = index;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
ui->output_sink_combo_box->setCurrentIndex(0);
|
||||
ui->output_sink_combo_box->setCurrentIndex(new_sink_index);
|
||||
}
|
||||
|
||||
void ConfigureAudio::applyConfiguration() {
|
||||
|
|
Loading…
Reference in a new issue