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

@@ -391,6 +391,10 @@ class Project extends Model
subscribeToBuffer: (buffer) ->
buffer.onDidDestroy => @removeBuffer(buffer)
buffer.onDidChangePath =>
console.log('did change path! ' + buffer.getPath())
unless @getPaths().length > 0
@setPaths([path.dirname(buffer.getPath())])
buffer.onWillThrowWatchError ({error, handle}) =>
handle()
@notificationManager.addWarning """