diff options
| author | 2023-05-18 16:06:54 -0400 | |
|---|---|---|
| committer | 2023-07-21 10:56:07 -0400 | |
| commit | 86ed82cddefe7ec30393072db84791f9bb7dfc69 (patch) | |
| tree | a38fa1ada09dc23ebb682d59ca5f74b7690f52b4 /src | |
| parent | configure_audio: Implement ui generation (diff) | |
| download | yuzu-86ed82cddefe7ec30393072db84791f9bb7dfc69.tar.gz yuzu-86ed82cddefe7ec30393072db84791f9bb7dfc69.tar.xz yuzu-86ed82cddefe7ec30393072db84791f9bb7dfc69.zip | |
settings, shared_widget: typo fixes
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/configuration/shared_widget.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/yuzu/configuration/shared_widget.cpp b/src/yuzu/configuration/shared_widget.cpp index d7b7ed164..4b21e5be8 100644 --- a/src/yuzu/configuration/shared_widget.cpp +++ b/src/yuzu/configuration/shared_widget.cpp | |||
| @@ -124,12 +124,18 @@ void Widget::CreateCombobox(const QString& label, std::function<void()>& load_fu | |||
| 124 | layout->setSpacing(6); | 124 | layout->setSpacing(6); |
| 125 | layout->setContentsMargins(0, 0, 0, 0); | 125 | layout->setContentsMargins(0, 0, 0, 0); |
| 126 | 126 | ||
| 127 | combobox->setCurrentIndex(std::stoi(setting.ToString())); | ||
| 128 | |||
| 129 | if (!managed) { | 127 | if (!managed) { |
| 130 | return; | 128 | return; |
| 131 | } | 129 | } |
| 132 | 130 | ||
| 131 | // TODO: Remove audio engine specialization | ||
| 132 | if (setting.TypeId() != typeid(Settings::AudioEngine)) { | ||
| 133 | combobox->setCurrentIndex(std::stoi(setting.ToString())); | ||
| 134 | } else { | ||
| 135 | combobox->setCurrentIndex( | ||
| 136 | static_cast<u32>(Settings::ToEnum<Settings::AudioEngine>(setting.ToString()))); | ||
| 137 | } | ||
| 138 | |||
| 133 | if (Settings::IsConfiguringGlobal()) { | 139 | if (Settings::IsConfiguringGlobal()) { |
| 134 | load_func = [=]() { setting.LoadString(std::to_string(combobox->currentIndex())); }; | 140 | load_func = [=]() { setting.LoadString(std::to_string(combobox->currentIndex())); }; |
| 135 | } else { | 141 | } else { |