Symbol Chooser: keep Recently Used at very top
Addition of Already Placed sorted it above Recently Used
This commit is contained in:
parent
6f25399469
commit
b3b7a41d51
|
@ -91,6 +91,12 @@ bool LIB_TREE_NODE::Compare( LIB_TREE_NODE const& aNode1, LIB_TREE_NODE const& a
|
||||||
{
|
{
|
||||||
if( aNode2.m_Name.StartsWith( wxT( "-- " ) ) )
|
if( aNode2.m_Name.StartsWith( wxT( "-- " ) ) )
|
||||||
{
|
{
|
||||||
|
// Make sure -- Recently Used is always at the top
|
||||||
|
if( aNode1.m_Name.StartsWith( wxT( "-- Recently Used" ) ) )
|
||||||
|
return true;
|
||||||
|
else if( aNode2.m_Name.StartsWith( wxT( "-- Recently Used" ) ) )
|
||||||
|
return false;
|
||||||
|
|
||||||
return aNode1.m_IntrinsicRank > aNode2.m_IntrinsicRank;
|
return aNode1.m_IntrinsicRank > aNode2.m_IntrinsicRank;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue