From 8e84943e37f8ae5d68246570ce858a0b3a842890 Mon Sep 17 00:00:00 2001 From: Amphitryon <17864580+Amphitryon0@users.noreply.github.com> Date: Mon, 21 Jul 2025 06:31:16 -0500 Subject: [PATCH] DolphinQt: Stop re-enabling Code widget when toggling debug mode It is useful enough for the Code widget to be enabled the first time debugging is enabled, but it should not be re-enabled every time the setting is toggled off and then back on. This also ensures that the interface is consistent if debugging is enabled without using the checkbox. --- Source/Core/DolphinQt/Settings.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/Core/DolphinQt/Settings.cpp b/Source/Core/DolphinQt/Settings.cpp index 993f53b621..3003cc6b47 100644 --- a/Source/Core/DolphinQt/Settings.cpp +++ b/Source/Core/DolphinQt/Settings.cpp @@ -518,8 +518,6 @@ void Settings::SetDebugModeEnabled(bool enabled) { Config::SetBaseOrCurrent(Config::MAIN_ENABLE_DEBUGGING, enabled); emit DebugModeToggled(enabled); - if (enabled) - SetCodeVisible(true); } } @@ -599,7 +597,7 @@ void Settings::SetCodeVisible(bool enabled) bool Settings::IsCodeVisible() const { - return GetQSettings().value(QStringLiteral("debugger/showcode")).toBool(); + return GetQSettings().value(QStringLiteral("debugger/showcode"), true).toBool(); } void Settings::SetMemoryVisible(bool enabled)