Don't show the tree view until the project has a path

This commit is contained in:
Kevin Sawicki & Nathan Sobo
2013-01-09 19:24:47 -07:00
parent bb6bed85c6
commit 3db7af1edf
3 changed files with 30 additions and 15 deletions

View File

@@ -82,8 +82,8 @@ class RootView extends View
@handleFocus(e) if document.activeElement is document.body
@on 'root-view:active-path-changed', (e, path) =>
@project.setPath(path) unless @project.getRootDirectory()
if path
@project.setPath(path) unless @project.getRootDirectory()
@setTitle(fs.base(path))
else
@setTitle("untitled")