mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Merge pull request #3814 from Parasithe/master
Add Atom in the title bar
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user