Set the initial path after saving in Project.

This commit is contained in:
joshaber
2016-04-25 17:02:51 -04:00
parent 5cf532ebe8
commit 9fa669b293
2 changed files with 4 additions and 2 deletions

View File

@@ -166,8 +166,6 @@ class TextEditor extends Model
subscribeToBuffer: ->
@buffer.retain()
@disposables.add @buffer.onDidChangePath =>
unless @project.getPaths().length > 0
@project.setPaths([path.dirname(@getPath())])
@emitter.emit 'did-change-title', @getTitle()
@emitter.emit 'did-change-path', @getPath()
@disposables.add @buffer.onDidChangeEncoding =>