Only start worker if project has path

This commit is contained in:
Kevin Sawicki
2013-02-02 14:09:59 -08:00
parent 5cd3c04702
commit 6efdd7b54b

View File

@@ -14,8 +14,9 @@ class FuzzyFinder extends DeferredAtomPackage
activate: (rootView) ->
super
callback = (paths) => @projectPaths = paths
new LoadPathsTask(rootView, callback).start()
if rootView.project.getPath()?
callback = (paths) => @projectPaths = paths
new LoadPathsTask(rootView, callback).start()
onLoadEvent: (event, instance) ->
if @projectPaths? and not @instance.projectPaths?