 class ProjectView extends FuzzyFinderView
   paths: null
   reloadPaths: true
+  reloadAfterFirstLoad: false
 
   initialize: (@paths) ->
     super

    if @reloadPaths
      @reloadPaths = false
      @loadPathsTask?.terminate()
      @loadPathsTask = PathLoader.startTask (@paths) => @populate()

      if @paths?
        @setLoading("Reindexing project\u2026")

    @reloadPaths = false if @paths?.length > 0

    @subscribe $(window), 'focus', =>
      if @paths?
        @reloadPaths = true
      else
        # The window gained focused while the first task was still running
        # so let it complete but reload the paths on the next populate call.
        @reloadAfterFirstLoad = true

    @subscribe atom.config.observe 'fuzzy-finder.ignoredNames', callNow: false, =>
      @reloadPaths = true

