Only update view when path changes

This commit is contained in:
Kevin Sawicki
2013-06-10 10:29:06 -07:00
parent 8fc1e34a74
commit 0f16b54d8e

View File

@@ -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) =>