Set document.title to the project path when the last editor is closed

This commit is contained in:
Nathan Sobo
2012-04-13 15:22:15 -06:00
parent 9819030b7d
commit 7e3abe4ff3
2 changed files with 7 additions and 2 deletions

View File

@@ -31,6 +31,8 @@ class RootView extends View
if @editors().length
@activeEditor().focus()
false
else
@setTitle(@project?.path)
@commandPanel = new CommandPanel({rootView: this})
@@ -42,8 +44,6 @@ class RootView extends View
else if not panesViewState?
@activeEditor().setBuffer(new Buffer)
@setTitle(@project?.path)
@deserializePanes(panesViewState) if panesViewState
serialize: ->