Sort footprint position files with rest of project items.

This commit is contained in:
Jeff Young 2020-08-20 13:22:05 +01:00
parent c5006b52ff
commit 9e40db9faf
1 changed files with 3 additions and 4 deletions

View File

@ -488,10 +488,9 @@ wxTreeItemId TREE_PROJECT_FRAME::AddItemToTreeProject(
data->SetState( 0 );
// Mark root files (files which have the same aName as the project)
if( currfile.GetName().CmpNoCase( project.GetName() ) == 0 )
data->SetRootFile( true );
else
data->SetRootFile( false );
wxString fileName = currfile.GetName().Lower();
wxString projName = project.GetName().Lower();
data->SetRootFile( fileName == projName || fileName.StartsWith( projName + "-" ) );
#ifndef __WINDOWS__
bool subdir_populated = false;