summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp
diff options
context:
space:
mode:
authorTryTwo <taolas@gmail.com>2023-11-16 11:07:37 -0700
committerTryTwo <taolas@gmail.com>2023-11-16 11:07:37 -0700
commitb57ba42a55099f82a71c3acede18f9de0c67bf74 (patch)
tree132b9ad9f32d9cb64f2d2039f577b288204aab74 /Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp
parentdf8c0d2b39319057a9f611b4490f5749387052d1 (diff)
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.
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp4
1 files changed, 2 insertions, 2 deletions
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)