mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
fix specs related to title
This commit is contained in:
@@ -686,8 +686,8 @@ class Config
|
||||
@watchSubscription = null
|
||||
|
||||
save: ->
|
||||
allSettings = @scopedSettingsStore.propertiesForSource('user-config')
|
||||
allSettings.global = @settings
|
||||
allSettings = global: @settings
|
||||
allSettings = _.extend allSettings, @scopedSettingsStore.propertiesForSource('user-config')
|
||||
CSON.writeFileSync(@configFilePath, allSettings)
|
||||
|
||||
###
|
||||
|
||||
@@ -136,8 +136,8 @@ class Workspace extends Model
|
||||
# Updates the application's title and proxy icon based on whichever file is
|
||||
# open.
|
||||
updateWindowTitle: =>
|
||||
appName = 'Atom'
|
||||
if projectPath = atom.project?.getPaths()[0]
|
||||
appName = 'Atom'
|
||||
if item = @getActivePaneItem()
|
||||
document.title = "#{item.getTitle?() ? 'untitled'} - #{projectPath} - #{appName}"
|
||||
atom.setRepresentedFilename(item.getPath?() ? projectPath)
|
||||
|
||||
Reference in New Issue
Block a user