From f989a80541f1061c4f8ca96a840692802984b9d2 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 7 Jan 2026 14:02:10 +1000 Subject: [PATCH] Qt: Fix initial state of debugger if opened while paused --- src/duckstation-qt/debuggerwindow.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/duckstation-qt/debuggerwindow.cpp b/src/duckstation-qt/debuggerwindow.cpp index 187072ae3..8ba43bb04 100644 --- a/src/duckstation-qt/debuggerwindow.cpp +++ b/src/duckstation-qt/debuggerwindow.cpp @@ -34,7 +34,12 @@ DebuggerWindow::DebuggerWindow(QWidget* parent /* = nullptr */) connectSignals(); createModels(); setMemoryViewRegion(Bus::MemoryRegion::RAM); - setUIEnabled(QtHost::IsSystemPaused(), QtHost::IsSystemValid()); + if (QtHost::IsSystemValid() && QtHost::IsSystemPaused()) + onSystemPaused(); + else if (QtHost::IsSystemValid()) + onSystemStarted(); + else + onSystemDestroyed(); } DebuggerWindow::~DebuggerWindow() = default;