Remove TreeControl call from thread

On Windows, this may use SendMessageW, forcing a wait for UI in the
thread

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20572

(cherry picked from commit 3d29fae7a92be91bddda92f776bc59a1a5014526)
This commit is contained in:
Seth Hillbrand 2025-04-07 17:04:51 -07:00
parent de1257abdf
commit d8903534b7

View File

@ -2116,8 +2116,7 @@ void PROJECT_TREE_PANE::updateGitStatusIconMap()
}
// Get Current Branch
PROJECT_TREE_ITEM* rootItem = GetItemIdData( m_TreeProject->GetRootItem() );
wxFileName rootFilename( rootItem->GetFileName() );
wxFileName rootFilename( Prj().GetProjectFullName() );
wxString repoWorkDir( git_repository_workdir( repo ) );
wxFileName relative = rootFilename;