WX/Debugger: Clean up event handling

Boot to Pause and Automatic Start are not JIT or CPU menu items,
so they are supposed to be handled by OnCPUMode.
This commit is contained in:
Léo Lam 2017-07-28 12:37:21 +08:00
parent ed331918f0
commit f777c01c5d
4 changed files with 18 additions and 8 deletions

View file

@ -505,6 +505,16 @@ void CCodeWindow::OnChangeFont(wxCommandEvent& event)
// TODO: Send event to all panels that tells them to reload the font when it changes.
}
void CCodeWindow::OnBootToPauseSelected(wxCommandEvent& event)
{
SConfig::GetInstance().bBootToPause = event.IsChecked();
}
void CCodeWindow::OnAutomaticStartSelected(wxCommandEvent& event)
{
SConfig::GetInstance().bAutomaticStart = event.IsChecked();
}
// Toggle windows
wxPanel* CCodeWindow::GetUntypedPanel(int id) const