Use async BrowserWindow::setRepresentedFilename

This commit is contained in:
Kevin Sawicki
2014-08-13 17:47:49 -07:00
parent d3e1c004fb
commit 2be658b894
2 changed files with 5 additions and 2 deletions

View File

@@ -474,6 +474,9 @@ class Atom extends Model
setDocumentEdited: (edited) ->
ipc.send('call-window-method', 'setDocumentEdited', edited)
setRepresentedFilename: (filename) ->
ipc.send('call-window-method', 'setRepresentedFilename', filename)
# Public: Is the current window in development mode?
inDevMode: ->
@getLoadSettings().devMode

View File

@@ -225,9 +225,9 @@ class WorkspaceView extends View
@setTitle('untitled')
# Sets the application's title (and the proxy icon on OS X)
setTitle: (title, proxyIconPath) ->
setTitle: (title, proxyIconPath='') ->
document.title = title
atom.getCurrentWindow().setRepresentedFilename(proxyIconPath ? '')
atom.setRepresentedFilename(proxyIconPath)
# On OS X, fades the application window's proxy icon when the current file
# has been modified.