mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Only update view when path changes
This commit is contained in:
@@ -17,9 +17,11 @@ class ArchiveView extends ScrollView
|
||||
|
||||
@setModel(editSession)
|
||||
|
||||
setPath: (@path) ->
|
||||
return unless @path?
|
||||
setPath: (path) ->
|
||||
return unless path?
|
||||
return if @path is path
|
||||
|
||||
@path = path
|
||||
@tree.hide()
|
||||
@loadingMessage.show()
|
||||
archive.list @path, tree: true, (error, entries) =>
|
||||
|
||||
Reference in New Issue
Block a user