From 86ed82cddefe7ec30393072db84791f9bb7dfc69 Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Thu, 18 May 2023 16:06:54 -0400 Subject: settings, shared_widget: typo fixes --- src/yuzu/configuration/shared_widget.cpp | 10 ++++++++-- 1 file 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& load_fu layout->setSpacing(6); layout->setContentsMargins(0, 0, 0, 0); - combobox->setCurrentIndex(std::stoi(setting.ToString())); - if (!managed) { return; } + // TODO: Remove audio engine specialization + if (setting.TypeId() != typeid(Settings::AudioEngine)) { + combobox->setCurrentIndex(std::stoi(setting.ToString())); + } else { + combobox->setCurrentIndex( + static_cast(Settings::ToEnum(setting.ToString()))); + } + if (Settings::IsConfiguringGlobal()) { load_func = [=]() { setting.LoadString(std::to_string(combobox->currentIndex())); }; } else { -- cgit v1.2.3