Point BEGIN_EVENT_TABLE at the correct base class, fix current lang indication

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17825
This commit is contained in:
Marek Roszko 2024-04-30 22:42:13 -04:00
parent e973c15087
commit aaf776db9e
2 changed files with 4 additions and 2 deletions

View File

@ -138,7 +138,7 @@ void IMAGE_SIZE::SetUnit( EDA_UNITS aUnit )
} }
BEGIN_EVENT_TABLE( BITMAP2CMP_FRAME, EDA_BASE_FRAME ) BEGIN_EVENT_TABLE( BITMAP2CMP_FRAME, KIWAY_PLAYER )
EVT_MENU( wxID_CLOSE, BITMAP2CMP_FRAME::OnExit ) EVT_MENU( wxID_CLOSE, BITMAP2CMP_FRAME::OnExit )
EVT_MENU( wxID_EXIT, BITMAP2CMP_FRAME::OnExit ) EVT_MENU( wxID_EXIT, BITMAP2CMP_FRAME::OnExit )
@ -193,6 +193,7 @@ BITMAP2CMP_FRAME::BITMAP2CMP_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
m_toolManager->InitTools(); m_toolManager->InitTools();
ReCreateMenuBar(); ReCreateMenuBar();
setupUIConditions();
GetSizer()->SetSizeHints( this ); GetSizer()->SetSizeHints( this );

View File

@ -53,7 +53,7 @@
#include "widgets/wx_menubar.h" #include "widgets/wx_menubar.h"
BEGIN_EVENT_TABLE( PCB_CALCULATOR_FRAME, EDA_BASE_FRAME ) BEGIN_EVENT_TABLE( PCB_CALCULATOR_FRAME, KIWAY_PLAYER )
EVT_MENU( wxID_CLOSE, PCB_CALCULATOR_FRAME::OnExit ) EVT_MENU( wxID_CLOSE, PCB_CALCULATOR_FRAME::OnExit )
EVT_MENU( wxID_EXIT, PCB_CALCULATOR_FRAME::OnExit ) EVT_MENU( wxID_EXIT, PCB_CALCULATOR_FRAME::OnExit )
END_EVENT_TABLE() END_EVENT_TABLE()
@ -113,6 +113,7 @@ PCB_CALCULATOR_FRAME::PCB_CALCULATOR_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
m_toolManager->InitTools(); m_toolManager->InitTools();
ReCreateMenuBar(); ReCreateMenuBar();
setupUIConditions();
GetSizer()->SetSizeHints( this ); GetSizer()->SetSizeHints( this );