mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
Formatting.
This commit is contained in:
parent
8dc62e1db5
commit
9a3c9d780f
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user