From 0fcb6ddcb29309e2e178fedfb53eec408fc0cbaa Mon Sep 17 00:00:00 2001 From: kleidis <167202775+kleidis@users.noreply.github.com> Date: Fri, 11 Oct 2024 19:27:48 +0200 Subject: [PATCH] `frame_limit` is now non-runtime-editable --- src/lime_qt/configuration/configure_general.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/lime_qt/configuration/configure_general.cpp b/src/lime_qt/configuration/configure_general.cpp index 1b4b1184b..053c32635 100644 --- a/src/lime_qt/configuration/configure_general.cpp +++ b/src/lime_qt/configuration/configure_general.cpp @@ -107,7 +107,10 @@ void ConfigureGeneral::SetConfiguration() { } if (!Settings::IsConfiguringGlobal()) { - if (Settings::values.frame_limit.UsingGlobal()) { + if (is_powered_on) { + ui->emulation_speed_combo->setEnabled(false); + ui->frame_limit->setEnabled(false); + } else if (Settings::values.frame_limit.UsingGlobal()) { ui->emulation_speed_combo->setCurrentIndex(0); ui->frame_limit->setEnabled(false); } else { @@ -200,7 +203,11 @@ void ConfigureGeneral::RetranslateUI() { void ConfigureGeneral::SetupPerGameUI() { if (Settings::IsConfiguringGlobal()) { ui->region_combobox->setEnabled(Settings::values.region_value.UsingGlobal()); - ui->frame_limit->setEnabled(Settings::values.frame_limit.UsingGlobal()); + if (is_powered_on) { + ui->frame_limit->setEnabled(false); + } else { + ui->frame_limit->setEnabled(Settings::values.frame_limit.UsingGlobal()); + } return; }