Skip to content

Commit f989a80

Browse files
committed
Qt: Fix initial state of debugger if opened while paused
1 parent 5428597 commit f989a80

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/duckstation-qt/debuggerwindow.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ DebuggerWindow::DebuggerWindow(QWidget* parent /* = nullptr */)
3434
connectSignals();
3535
createModels();
3636
setMemoryViewRegion(Bus::MemoryRegion::RAM);
37-
setUIEnabled(QtHost::IsSystemPaused(), QtHost::IsSystemValid());
37+
if (QtHost::IsSystemValid() && QtHost::IsSystemPaused())
38+
onSystemPaused();
39+
else if (QtHost::IsSystemValid())
40+
onSystemStarted();
41+
else
42+
onSystemDestroyed();
3843
}
3944

4045
DebuggerWindow::~DebuggerWindow() = default;

0 commit comments

Comments
 (0)