@@ -55,6 +55,8 @@ public void Run(bool firstRun)
5555 {
5656 Logger . Trace ( "Run - CurrentDirectory {0}" , NPath . CurrentDirectory ) ;
5757
58+ isBusy = true ;
59+
5860 var gitExecutablePath = SystemSettings . Get ( Constants . GitInstallPathKey ) ? . ToNPath ( ) ;
5961 if ( gitExecutablePath . HasValue && gitExecutablePath . Value . FileExists ( ) ) // we have a git path
6062 {
@@ -65,7 +67,6 @@ public void Run(bool firstRun)
6567 {
6668 Logger . Trace ( "No git path found in settings" ) ;
6769
68- isBusy = true ;
6970 var initEnvironmentTask = new ActionTask < NPath > ( CancellationToken ,
7071 ( b , path ) => InitializeEnvironment ( path ) ) { Affinity = TaskAffinity . UI } ;
7172 var findExecTask = new FindExecTask ( "git" , CancellationToken )
@@ -81,7 +82,6 @@ public void Run(bool firstRun)
8182 //Logger.Warning("FindExecTask Failure");
8283 Logger . Error ( "Git not found" ) ;
8384 }
84- isBusy = false ;
8585 } ) ;
8686
8787 var gitInstaller = new GitInstaller ( Environment , CancellationToken ) ;
@@ -248,7 +248,7 @@ public void Dispose()
248248 public ISettings SystemSettings { get ; protected set ; }
249249 public ISettings UserSettings { get ; protected set ; }
250250 public IUsageTracker UsageTracker { get ; protected set ; }
251- public bool IsBusy { get { return isBusy || ( RepositoryManager ? . IsBusy ?? false ) ; } }
251+ public bool IsBusy { get { return isBusy ; } }
252252 protected TaskScheduler UIScheduler { get ; private set ; }
253253 protected SynchronizationContext SynchronizationContext { get ; private set ; }
254254 protected IRepositoryManager RepositoryManager { get { return repositoryManager ; } }
0 commit comments