Move preferences to an action instead of a wx event
This commit is contained in:
@@ -101,7 +101,6 @@ static const wxSize defaultSize( FRAME_T aFrameType )
|
||||
|
||||
BEGIN_EVENT_TABLE( EDA_BASE_FRAME, wxFrame )
|
||||
EVT_MENU( wxID_ABOUT, EDA_BASE_FRAME::OnKicadAbout )
|
||||
EVT_MENU( wxID_PREFERENCES, EDA_BASE_FRAME::OnPreferences )
|
||||
|
||||
EVT_CHAR_HOOK( EDA_BASE_FRAME::OnCharHook )
|
||||
EVT_MENU_OPEN( EDA_BASE_FRAME::OnMenuEvent )
|
||||
@@ -1049,12 +1048,6 @@ void EDA_BASE_FRAME::OnKicadAbout( wxCommandEvent& event )
|
||||
}
|
||||
|
||||
|
||||
void EDA_BASE_FRAME::OnPreferences( wxCommandEvent& event )
|
||||
{
|
||||
ShowPreferences( wxEmptyString, wxEmptyString );
|
||||
}
|
||||
|
||||
|
||||
void EDA_BASE_FRAME::ShowPreferences( wxString aStartPage, wxString aStartParentPage )
|
||||
{
|
||||
wxBeginBusyCursor( wxHOURGLASS_CURSOR );
|
||||
|
||||
Reference in New Issue
Block a user