mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
path -> proxyIconPath
Test plan: Crossed fingers
This commit is contained in:
@@ -216,17 +216,17 @@ class WorkspaceView extends View
|
||||
if projectPath = atom.project.getPath()
|
||||
if item = @getModel().getActivePaneItem()
|
||||
title = "#{item.getTitle?() ? 'untitled'} - #{projectPath}"
|
||||
path = item.getPath?() ? projectPath
|
||||
@setTitle(title, path)
|
||||
proxyIconPath = item.getPath?() ? projectPath
|
||||
@setTitle(title, proxyIconPath)
|
||||
else
|
||||
@setTitle(projectPath, projectPath)
|
||||
else
|
||||
@setTitle('untitled')
|
||||
|
||||
# Sets the application's title (and the proxy icon on OS X)
|
||||
setTitle: (title, path) ->
|
||||
setTitle: (title, proxyIconPath) ->
|
||||
document.title = title
|
||||
atom.getCurrentWindow().setRepresentedFilename(path ? '')
|
||||
atom.getCurrentWindow().setRepresentedFilename(proxyIconPath ? '')
|
||||
|
||||
# Get all editor views.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user