mirror of
https://github.com/atom/atom.git
synced 2026-02-16 09:35:54 -05:00
Set document.title to the project path when the last editor is closed
This commit is contained in:
@@ -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: ->
|
||||
|
||||
Reference in New Issue
Block a user