mirror of
https://github.com/atom/atom.git
synced 2026-02-08 21:55:05 -05:00
show() the activeResource when it becomes active
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user