Symbol editor: fix message panel units when selecting from combo box.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8991
This commit is contained in:
Wayne Stambaugh 2021-08-20 15:45:57 -04:00
parent eefac5cc59
commit 1d8fd22cd8
4 changed files with 9 additions and 8 deletions

View File

@ -158,7 +158,7 @@ SYMBOL_EDIT_FRAME::SYMBOL_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
ReCreateOptToolbar();
updateTitle();
DisplaySymbolDatasheet();
UpdateSymbolMsgPanelInfo();
RebuildSymbolUnitsList();
m_auimgr.SetManagedWindow( this );
@ -629,6 +629,7 @@ void SYMBOL_EDIT_FRAME::OnSelectUnit( wxCommandEvent& event )
m_toolManager->ResetTools( TOOL_BASE::MODEL_RELOAD );
RebuildView();
UpdateSymbolMsgPanelInfo();
}
@ -1330,7 +1331,7 @@ void SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic( SCH_SYMBOL* aSymbol )
updateTitle();
RebuildSymbolUnitsList();
SetShowDeMorgan( GetCurSymbol()->HasConversion() );
DisplaySymbolDatasheet();
UpdateSymbolMsgPanelInfo();
Refresh();
}

View File

@ -229,7 +229,7 @@ public:
void ClearMsgPanel() override
{
DisplaySymbolDatasheet();
UpdateSymbolMsgPanelInfo();
}
bool IsSymbolFromSchematic() const { return m_isSymbolFromSchematic; }
@ -239,7 +239,7 @@ public:
/**
* Display the documentation of the selected symbol.
*/
void DisplaySymbolDatasheet();
void UpdateSymbolMsgPanelInfo();
// General editing
/**

View File

@ -365,7 +365,7 @@ bool SYMBOL_EDIT_FRAME::LoadOneLibrarySymbolAux( LIB_SYMBOL* aEntry, const wxStr
// Display the document information based on the entry selected just in
// case the entry is an alias.
DisplaySymbolDatasheet();
UpdateMsgPanel();
Refresh();
return true;
@ -727,7 +727,7 @@ void SYMBOL_EDIT_FRAME::UpdateAfterSymbolProperties( wxString* aOldName )
RebuildSymbolUnitsList();
SetShowDeMorgan( GetCurSymbol()->Flatten()->HasConversion() );
updateTitle();
DisplaySymbolDatasheet();
UpdateMsgPanel();
RebuildView();
OnModify();
@ -1184,7 +1184,7 @@ bool SYMBOL_EDIT_FRAME::saveAllLibraries( bool aRequireConfirmation )
}
void SYMBOL_EDIT_FRAME::DisplaySymbolDatasheet()
void SYMBOL_EDIT_FRAME::UpdateSymbolMsgPanelInfo()
{
EDA_DRAW_FRAME::ClearMsgPanel();

View File

@ -549,7 +549,7 @@ void SYMBOL_EDITOR_EDIT_TOOL::editFieldProperties( LIB_FIELD* aField )
updateItem( aField, true );
m_frame->GetCanvas()->Refresh();
m_frame->OnModify();
m_frame->DisplaySymbolDatasheet();
m_frame->UpdateSymbolMsgPanelInfo();
}
}