Update Selection Filter title bar with language changes.

Fixes https://gitlab.com/kicad/code/kicad/issues/11421
This commit is contained in:
Jeff Young 2022-04-19 21:11:43 +01:00
parent ffc28f23e5
commit 4ab2c93070
3 changed files with 7 additions and 5 deletions

View File

@ -615,8 +615,6 @@ bool DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow()
return false;
SCH_SCREEN* currentScreen = GetParent()->GetScreen();
SCHEMATIC& schematic = GetParent()->Schematic();
wxCHECK( currentScreen, false );
// This needs to be done before the LIB_ID is changed to prevent stale library symbols in

View File

@ -800,6 +800,8 @@ void FOOTPRINT_EDIT_FRAME::ShowChangedLanguage()
wxAuiPaneInfo& lm_pane_info = m_auimgr.GetPane( m_appearancePanel );
bool lm_shown = lm_pane_info.IsShown();
lm_pane_info.Caption( _( "Appearance" ) );
wxAuiPaneInfo& sf_pane_info = m_auimgr.GetPane( m_selectionFilterPanel );
sf_pane_info.Caption( _( "Selection Filter" ) );
// update the layer manager
m_appearancePanel->OnLanguageChanged();

View File

@ -1298,8 +1298,10 @@ void PCB_EDIT_FRAME::ShowChangedLanguage()
// call my base class
PCB_BASE_EDIT_FRAME::ShowChangedLanguage();
wxAuiPaneInfo& pane_info = m_auimgr.GetPane( m_appearancePanel );
pane_info.Caption( _( "Appearance" ) );
wxAuiPaneInfo& ap_pane_info = m_auimgr.GetPane( m_appearancePanel );
ap_pane_info.Caption( _( "Appearance" ) );
wxAuiPaneInfo& sf_pane_info = m_auimgr.GetPane( m_selectionFilterPanel );
sf_pane_info.Caption( _( "Selection Filter" ) );
m_auimgr.Update();
m_appearancePanel->OnLanguageChanged();