mirror of
https://github.com/atom/atom.git
synced 2026-02-08 21:55:05 -05:00
FileFinder removes itself when item is selected.
This commit is contained in:
@@ -35,6 +35,7 @@ class FileFinder extends Template
|
||||
select: ->
|
||||
filePath = @findSelectedLi().text()
|
||||
@selected(filePath) if filePath and @selected
|
||||
@remove()
|
||||
|
||||
moveUp: ->
|
||||
@findSelectedLi()
|
||||
|
||||
@@ -38,7 +38,7 @@ class RootView extends Template
|
||||
toggleFileFinder: ->
|
||||
return unless @project
|
||||
|
||||
if @fileFinder
|
||||
if @fileFinder and @fileFinder.parent()[0]
|
||||
@fileFinder.remove()
|
||||
@fileFinder = null
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user