mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Set the initial path after saving in Project.
This commit is contained in:
@@ -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 """
|
||||
|
||||
Reference in New Issue
Block a user