Formatting.

This commit is contained in:
Jeff Young 2025-07-02 21:10:48 -06:00
parent 8dc62e1db5
commit 9a3c9d780f

View File

@ -2753,24 +2753,25 @@ void PROJECT_TREE_PANE::onGitSyncTimer( wxTimerEvent& aEvent )
thread_pool& tp = GetKiCadThreadPool();
tp.push_task( [this]()
{
KIGIT_COMMON* gitCommon = m_TreeProject->GitCommon();
tp.push_task(
[this]()
{
KIGIT_COMMON* gitCommon = m_TreeProject->GitCommon();
if( !gitCommon )
{
wxLogTrace( traceGit, "onGitSyncTimer: No git repository found" );
return;
}
if( !gitCommon )
{
wxLogTrace( traceGit, "onGitSyncTimer: No git repository found" );
return;
}
GIT_PULL_HANDLER handler( gitCommon );
handler.PerformFetch();
GIT_PULL_HANDLER handler( gitCommon );
handler.PerformFetch();
CallAfter( [this]()
{
gitStatusTimerHandler();
} );
} );
CallAfter( [this]()
{
gitStatusTimerHandler();
} );
} );
if( gitSettings.updatInterval > 0 )
{
@ -2796,6 +2797,7 @@ void PROJECT_TREE_PANE::gitStatusTimerHandler()
void PROJECT_TREE_PANE::onGitStatusTimer( wxTimerEvent& aEvent )
{
wxLogTrace( traceGit, "onGitStatusTimer" );
if( !Pgm().GetCommonSettings()->m_Git.enableGit || !m_TreeProject )
return;