BreakpointWidget: Can create new breakpoints when emulation isn't running

It works perfectly fine, so why not? Also, consistency with CodeViewWidget.
This commit is contained in:
Martino Fontana 2024-06-15 11:46:28 +02:00
parent bd3cf67cbc
commit 719af828e5

View File

@ -173,7 +173,6 @@ void BreakpointWidget::CreateWidgets()
m_load = m_toolbar->addAction(tr("Load"), this, &BreakpointWidget::OnLoad);
m_save = m_toolbar->addAction(tr("Save"), this, &BreakpointWidget::OnSave);
m_new->setEnabled(false);
m_load->setEnabled(false);
m_save->setEnabled(false);
@ -252,7 +251,6 @@ void BreakpointWidget::UpdateButtonsEnabled()
return;
const bool is_initialised = Core::GetState(m_system) != Core::State::Uninitialized;
m_new->setEnabled(is_initialised);
m_load->setEnabled(is_initialised);
m_save->setEnabled(is_initialised);
}