aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/configure_system.cpp
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-21 04:32:21 -0400
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-21 10:56:55 -0400
commit380be385d174c49deeac0b392c7453a2d2e406de (patch)
tree5563ab1ad22884c117199cf8ead9e82344e04f50 /src/yuzu/configuration/configure_system.cpp
parent4ffbd95fa512cab5c348f1c5e33db65351f1be5a (diff)
configuration: Use paired settings
Diffstat (limited to 'src/yuzu/configuration/configure_system.cpp')
-rw-r--r--src/yuzu/configuration/configure_system.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/yuzu/configuration/configure_system.cpp b/src/yuzu/configuration/configure_system.cpp
index ef26fb6ce5..cb708051e3 100644
--- a/src/yuzu/configuration/configure_system.cpp
+++ b/src/yuzu/configuration/configure_system.cpp
@@ -107,18 +107,8 @@ void ConfigureSystem::Setup(const ConfigurationShared::Builder& builder) {
for (auto setting : settings) {
ConfigurationShared::Widget* widget = [this, setting, &builder]() {
- if (setting->Id() == Settings::values.custom_rtc.Id()) {
- // custom_rtc needs a DateTimeEdit (default is LineEdit), and a checkbox to manage
- // it and custom_rtc_enabled
- return builder.BuildWidget(setting, apply_funcs,
- &Settings::values.custom_rtc_enabled);
- } else if (setting->Id() == Settings::values.rng_seed.Id()) {
- // rng_seed needs a HexEdit (default is LineEdit), and a checkbox to manage
- // it and rng_seed_enabled
- return builder.BuildWidget(setting, apply_funcs,
- &Settings::values.rng_seed_enabled);
- } else if (setting->Id() == Settings::values.speed_limit.Id()) {
- // speed_limit needs a checkbox to set use_speed_limit, as well as a spinbox
+ if (setting->Id() == Settings::values.speed_limit.Id()) {
+ // speed_limit must be specified to translate the percentage
return builder.BuildWidget(setting, apply_funcs, &Settings::values.use_speed_limit,
ConfigurationShared::RequestType::SpinBox,
tr("%", "Limit speed percentage (e.g. 50%)"));