Merge pull request #3814 from Parasithe/master

Add Atom in the title bar
This commit is contained in:
Ben Ogle
2014-10-13 17:27:16 -07:00

View File

@@ -137,14 +137,15 @@ class Workspace extends Model
# open.
updateWindowTitle: =>
if projectPath = atom.project?.getPaths()[0]
titleAddition = '- Atom'
if item = @getActivePaneItem()
document.title = "#{item.getTitle?() ? 'untitled'} - #{projectPath}"
document.title = "#{item.getTitle?() ? 'untitled'} - #{projectPath} #{titleAddition}"
atom.setRepresentedFilename(item.getPath?() ? projectPath)
else
document.title = projectPath
document.title = "#{projectPath} #{titleAddition}"
atom.setRepresentedFilename(projectPath)
else
document.title = 'untitled'
document.title = "untitled #{titleAddition}"
atom.setRepresentedFilename('')
# On OS X, fades the application window's proxy icon when the current file