mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
atomController.path => window.path
This commit is contained in:
@@ -47,8 +47,8 @@ class TreePane extends Pane
|
||||
true
|
||||
|
||||
reload: ->
|
||||
@html.children('#tree .cwd').text _.last atomController.path.split '/'
|
||||
fileList = @createList atomController.path
|
||||
@html.children('#tree .cwd').text _.last window.path.split '/'
|
||||
fileList = @createList window.path
|
||||
fileList.addClass 'files'
|
||||
@html.children('#tree .files').replaceWith fileList
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ class Tree extends Extension
|
||||
KeyBinder.load require.resolve "tree/key-bindings.coffee"
|
||||
|
||||
# watch the root dir
|
||||
Watcher.watch atomController.path, @watchDir
|
||||
Watcher.watch window.path, @watchDir
|
||||
|
||||
# Hide dirs that no longer exist, watch dirs that do.
|
||||
for dir in @shownDirs()
|
||||
@@ -34,7 +34,7 @@ class Tree extends Extension
|
||||
@unwatchDir dir for dir in @shownDirs()
|
||||
|
||||
shownDirStorageKey: ->
|
||||
@.constructor.name + ":" + atomController.path + ":shownDirs"
|
||||
@.constructor.name + ":" + window.path + ":shownDirs"
|
||||
|
||||
watchDir: (dir) =>
|
||||
@pane.reload()
|
||||
|
||||
Reference in New Issue
Block a user