Debugger: Require emulator start before enabling Break/Run button

This commit is contained in:
ty authored and refractionpcsx2 committed 2021-03-17 15:39:11 +00:00
1 parent e18ee42afc
commit 794e2e47d0
1 file changed
+3
+3
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();