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