summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2023-03-13 18:49:14 -0700
committerGravatar GitHub2023-03-13 18:49:14 -0700
commit05f26e133720af796f11e8ebe2bede7448901113 (patch)
treeb1867d6edce4721f44282a4bb0efa7faacba2ed4
parentMerge pull request #9939 from german77/vibration (diff)
parentconfigure_audio: Fix output mode setting not saving (diff)
downloadyuzu-05f26e133720af796f11e8ebe2bede7448901113.tar.gz
yuzu-05f26e133720af796f11e8ebe2bede7448901113.tar.xz
yuzu-05f26e133720af796f11e8ebe2bede7448901113.zip
Merge pull request #9951 from Morph1984/save
configure_audio: Fix output mode setting not saving
-rw-r--r--src/yuzu/configuration/configure_audio.cpp16
-rw-r--r--src/yuzu/configuration/configure_audio.ui2
2 files changed, 9 insertions, 9 deletions
diff --git a/src/yuzu/configuration/configure_audio.cpp b/src/yuzu/configuration/configure_audio.cpp
index 4bec51260..fcd6d61a0 100644
--- a/src/yuzu/configuration/configure_audio.cpp
+++ b/src/yuzu/configuration/configure_audio.cpp
@@ -54,16 +54,17 @@ void ConfigureAudio::SetConfiguration() {
54 if (Settings::values.volume.UsingGlobal()) { 54 if (Settings::values.volume.UsingGlobal()) {
55 ui->volume_combo_box->setCurrentIndex(0); 55 ui->volume_combo_box->setCurrentIndex(0);
56 ui->volume_slider->setEnabled(false); 56 ui->volume_slider->setEnabled(false);
57 ui->combo_sound->setCurrentIndex(Settings::values.sound_index.GetValue());
58 } else { 57 } else {
59 ui->volume_combo_box->setCurrentIndex(1); 58 ui->volume_combo_box->setCurrentIndex(1);
60 ui->volume_slider->setEnabled(true); 59 ui->volume_slider->setEnabled(true);
61 ConfigurationShared::SetPerGameSetting(ui->combo_sound, &Settings::values.sound_index);
62 } 60 }
63 ConfigurationShared::SetHighlight(ui->volume_layout, 61 ConfigurationShared::SetPerGameSetting(ui->combo_sound, &Settings::values.sound_index);
64 !Settings::values.volume.UsingGlobal());
65 ConfigurationShared::SetHighlight(ui->mode_label, 62 ConfigurationShared::SetHighlight(ui->mode_label,
66 !Settings::values.sound_index.UsingGlobal()); 63 !Settings::values.sound_index.UsingGlobal());
64 ConfigurationShared::SetHighlight(ui->volume_layout,
65 !Settings::values.volume.UsingGlobal());
66 } else {
67 ui->combo_sound->setCurrentIndex(Settings::values.sound_index.GetValue());
67 } 68 }
68 SetVolumeIndicatorText(ui->volume_slider->sliderPosition()); 69 SetVolumeIndicatorText(ui->volume_slider->sliderPosition());
69} 70}
@@ -182,14 +183,13 @@ void ConfigureAudio::RetranslateUI() {
182 183
183void ConfigureAudio::SetupPerGameUI() { 184void ConfigureAudio::SetupPerGameUI() {
184 if (Settings::IsConfiguringGlobal()) { 185 if (Settings::IsConfiguringGlobal()) {
186 ui->combo_sound->setEnabled(Settings::values.sound_index.UsingGlobal());
185 ui->volume_slider->setEnabled(Settings::values.volume.UsingGlobal()); 187 ui->volume_slider->setEnabled(Settings::values.volume.UsingGlobal());
186 // ui->combo_sound->setEnabled(Settings::values.sound_index.UsingGlobal());
187
188 return; 188 return;
189 } 189 }
190 190
191 // ConfigurationShared::SetColoredComboBox(ui->combo_sound, ui->label_sound, 191 ConfigurationShared::SetColoredComboBox(ui->combo_sound, ui->mode_label,
192 // Settings::values.sound_index.GetValue(true)); 192 Settings::values.sound_index.GetValue(true));
193 193
194 connect(ui->volume_combo_box, qOverload<int>(&QComboBox::activated), this, [this](int index) { 194 connect(ui->volume_combo_box, qOverload<int>(&QComboBox::activated), this, [this](int index) {
195 ui->volume_slider->setEnabled(index == 1); 195 ui->volume_slider->setEnabled(index == 1);
diff --git a/src/yuzu/configuration/configure_audio.ui b/src/yuzu/configuration/configure_audio.ui
index bcd5d8c2b..4128c83ad 100644
--- a/src/yuzu/configuration/configure_audio.ui
+++ b/src/yuzu/configuration/configure_audio.ui
@@ -67,7 +67,7 @@
67 <item> 67 <item>
68 <widget class="QLabel" name="mode_label"> 68 <widget class="QLabel" name="mode_label">
69 <property name="text"> 69 <property name="text">
70 <string>Sound Ouput Mode:</string> 70 <string>Sound Output Mode:</string>
71 </property> 71 </property>
72 </widget> 72 </widget>
73 </item> 73 </item>