Debugger: Require emulator start before enabling Break/Run button

This commit is contained in:
ty 2021-03-13 12:27:45 -05:00 committed by refractionpcsx2
parent e18ee42afc
commit 794e2e47d0
1 changed files with 3 additions and 0 deletions

View File

@ -245,6 +245,7 @@ DisassemblyDialog::DisassemblyDialog(wxWindow* parent):
breakRunButton = new wxButton(panel, wxID_ANY, L"Run");
Bind(wxEVT_BUTTON, &DisassemblyDialog::onBreakRunClicked, this, breakRunButton->GetId());
breakRunButton->Enable(false);
topRowSizer->Add(breakRunButton);
stepIntoButton = new wxButton( panel, wxID_ANY, L"Step Into");
@ -606,6 +607,8 @@ void DisassemblyDialog::setDebugMode(bool debugMode, bool switchPC)
if (running)
{
breakRunButton->Enable(true);
if (currentCpu == NULL)
{
wxWindow* currentPage = middleBook->GetCurrentPage();