mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Subscribe to collapse event in PathView
This commit is contained in:
@@ -17,7 +17,7 @@ class PathView extends View
|
||||
|
||||
initialize: ->
|
||||
@on 'mousedown', @onPathSelected
|
||||
rootView.command 'command-panel:collapse-result', (e) =>
|
||||
@subscribe rootView, 'command-panel:collapse-result', =>
|
||||
@collapse(true) if @find('.selected').length
|
||||
|
||||
onPathSelected: (event) =>
|
||||
|
||||
Reference in New Issue
Block a user