From 82bf5da9aad3f0152a69c8881f45dfb0f70d6df3 Mon Sep 17 00:00:00 2001 From: Parasithe Date: Mon, 13 Oct 2014 17:06:05 -0400 Subject: [PATCH] Add Atom in the title bar --- src/workspace.coffee | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/workspace.coffee b/src/workspace.coffee index 799a55069..6086c6af8 100644 --- a/src/workspace.coffee +++ b/src/workspace.coffee @@ -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