mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Set the window title to 'untitled' when the active item has no title
This commit is contained in:
@@ -115,7 +115,7 @@ class RootView extends View
|
||||
updateTitle: ->
|
||||
if projectPath = project.getPath()
|
||||
if item = @getActivePaneItem()
|
||||
@setTitle("#{item.getTitle()} - #{projectPath}")
|
||||
@setTitle("#{item.getTitle?() ? 'untitled'} - #{projectPath}")
|
||||
else
|
||||
@setTitle(projectPath)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user