mirror of
https://github.com/atom/atom.git
synced 2026-02-14 08:35:11 -05:00
Don't show the tree view until the project has a path
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user