mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Only start worker if project has path
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user