Make sure mru search strings get updated on double-click.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16355
This commit is contained in:
Jeff Young 2023-12-14 12:03:15 +00:00
parent b9a5e04ad0
commit 358a2b9875
1 changed files with 7 additions and 2 deletions

View File

@ -801,11 +801,13 @@ void LIB_TREE::onTreeCharHook( wxKeyEvent& aKeyStroke )
void LIB_TREE::onTreeSelect( wxDataViewEvent& aEvent )
{
if( m_tree_ctrl->IsFrozen() )
return;
if( !m_inTimerEvent )
updateRecentSearchMenu();
if( !m_tree_ctrl->IsFrozen() )
postPreselectEvent();
postPreselectEvent();
}
@ -813,6 +815,9 @@ void LIB_TREE::onTreeActivate( wxDataViewEvent& aEvent )
{
hidePreview();
if( !m_inTimerEvent )
updateRecentSearchMenu();
if( !GetSelectedLibId().IsValid() )
toggleExpand( m_tree_ctrl->GetSelection() ); // Expand library/part units subtree
else