mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
Qt: Fix initial state of debugger if opened while paused
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user