mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
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:
parent
bd3cf67cbc
commit
719af828e5
@ -173,7 +173,6 @@ void BreakpointWidget::CreateWidgets()
|
|||||||
m_load = m_toolbar->addAction(tr("Load"), this, &BreakpointWidget::OnLoad);
|
m_load = m_toolbar->addAction(tr("Load"), this, &BreakpointWidget::OnLoad);
|
||||||
m_save = m_toolbar->addAction(tr("Save"), this, &BreakpointWidget::OnSave);
|
m_save = m_toolbar->addAction(tr("Save"), this, &BreakpointWidget::OnSave);
|
||||||
|
|
||||||
m_new->setEnabled(false);
|
|
||||||
m_load->setEnabled(false);
|
m_load->setEnabled(false);
|
||||||
m_save->setEnabled(false);
|
m_save->setEnabled(false);
|
||||||
|
|
||||||
@ -252,7 +251,6 @@ void BreakpointWidget::UpdateButtonsEnabled()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
const bool is_initialised = Core::GetState(m_system) != Core::State::Uninitialized;
|
const bool is_initialised = Core::GetState(m_system) != Core::State::Uninitialized;
|
||||||
m_new->setEnabled(is_initialised);
|
|
||||||
m_load->setEnabled(is_initialised);
|
m_load->setEnabled(is_initialised);
|
||||||
m_save->setEnabled(is_initialised);
|
m_save->setEnabled(is_initialised);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user