Make sure mru search strings get updated on double-click.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16355
This commit is contained in:
parent
b9a5e04ad0
commit
358a2b9875
|
@ -801,11 +801,13 @@ void LIB_TREE::onTreeCharHook( wxKeyEvent& aKeyStroke )
|
||||||
|
|
||||||
void LIB_TREE::onTreeSelect( wxDataViewEvent& aEvent )
|
void LIB_TREE::onTreeSelect( wxDataViewEvent& aEvent )
|
||||||
{
|
{
|
||||||
|
if( m_tree_ctrl->IsFrozen() )
|
||||||
|
return;
|
||||||
|
|
||||||
if( !m_inTimerEvent )
|
if( !m_inTimerEvent )
|
||||||
updateRecentSearchMenu();
|
updateRecentSearchMenu();
|
||||||
|
|
||||||
if( !m_tree_ctrl->IsFrozen() )
|
postPreselectEvent();
|
||||||
postPreselectEvent();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -813,6 +815,9 @@ void LIB_TREE::onTreeActivate( wxDataViewEvent& aEvent )
|
||||||
{
|
{
|
||||||
hidePreview();
|
hidePreview();
|
||||||
|
|
||||||
|
if( !m_inTimerEvent )
|
||||||
|
updateRecentSearchMenu();
|
||||||
|
|
||||||
if( !GetSelectedLibId().IsValid() )
|
if( !GetSelectedLibId().IsValid() )
|
||||||
toggleExpand( m_tree_ctrl->GetSelection() ); // Expand library/part units subtree
|
toggleExpand( m_tree_ctrl->GetSelection() ); // Expand library/part units subtree
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue