From b57ba42a55099f82a71c3acede18f9de0c67bf74 Mon Sep 17 00:00:00 2001 From: TryTwo Date: Thu, 16 Nov 2023 11:07:37 -0700 Subject: Core::SetState() allow state to change without sending a callback. Some state changes are meant to be near instantanoues, before switching to something else. By reporting ithe instant switch, the UI will flicker between states (pause/play button) and the debugger will unnecessarily update. Skipping the callback avoids these issues. --- Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp') diff --git a/Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp b/Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp index 6698a8289e..f8610e3b85 100644 --- a/Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp @@ -160,7 +160,7 @@ void CodeDiffDialog::ClearBlockCache() Core::State old_state = Core::GetState(); if (old_state == Core::State::Running) - Core::SetState(Core::State::Paused); + Core::SetState(Core::State::Paused, false); Core::System::GetInstance().GetJitInterface().ClearCache(); @@ -349,7 +349,7 @@ void CodeDiffDialog::Update(bool include) // Wrap everything in a pause Core::State old_state = Core::GetState(); if (old_state == Core::State::Running) - Core::SetState(Core::State::Paused); + Core::SetState(Core::State::Paused, false); // Main process if (include) -- cgit v1.2.3