summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/yuzu/configuration/configure_general.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/yuzu/configuration/configure_general.cpp b/src/yuzu/configuration/configure_general.cpp
index 743ea824c..a7f26023d 100644
--- a/src/yuzu/configuration/configure_general.cpp
+++ b/src/yuzu/configuration/configure_general.cpp
@@ -32,9 +32,11 @@ void ConfigureGeneral::SetConfiguration() {
const bool runtime_lock = !system.IsPoweredOn();
QLayout& layout = *ui->general_widget->layout();
+ std::map<std::string, QWidget*> hold{};
+
for (const auto setting :
UISettings::values.linkage.by_category[Settings::Category::UiGeneral]) {
- ConfigurationShared::Widget* widget =
+ auto* widget =
new ConfigurationShared::Widget(setting, translations, this, runtime_lock, apply_funcs);
if (!widget->Valid()) {
@@ -42,6 +44,10 @@ void ConfigureGeneral::SetConfiguration() {
continue;
}
+ hold.insert({setting->GetLabel(), widget});
+ }
+
+ for (const auto& [label, widget] : hold) {
layout.addWidget(widget);
}
}