show() the activeResource when it becomes active

This commit is contained in:
Chris Wanstrath
2011-11-12 19:35:40 -08:00
parent 8c5bc71610
commit 46c7ab5572
2 changed files with 4 additions and 0 deletions

View File

@@ -52,6 +52,9 @@ class Editor extends Resource
title: ->
if @url then _.last @url.split '/' else 'untitled'
show: ->
@pane.show()
open: (url) ->
if url
return false if not fs.isFile url

View File

@@ -51,6 +51,7 @@ class Project extends Resource
if @resources[url]
@activeResource = @resources[url]
atom.trigger 'project:resource:active', this, @activeResource
@activeResource.show()
true
else
# Try to open all others