mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Use async BrowserWindow::setRepresentedFilename
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user