fix specs related to title

This commit is contained in:
Ben Ogle
2014-10-13 17:48:06 -07:00
parent 5c8e20a01d
commit c16d84527d
4 changed files with 11 additions and 11 deletions

View File

@@ -136,8 +136,8 @@ class Workspace extends Model
# Updates the application's title and proxy icon based on whichever file is
# open.
updateWindowTitle: =>
appName = 'Atom'
if projectPath = atom.project?.getPaths()[0]
appName = 'Atom'
if item = @getActivePaneItem()
document.title = "#{item.getTitle?() ? 'untitled'} - #{projectPath} - #{appName}"
atom.setRepresentedFilename(item.getPath?() ? projectPath)