don't display explorer at all if no file

pull/3094/head
yann300 7 years ago
parent fa41de742b
commit d77dbc2b0e
  1. 3
      src/app/files/file-explorer.js

@ -410,9 +410,6 @@ function expandPathTo (li) {
fileExplorer.prototype.init = function () { fileExplorer.prototype.init = function () {
var files = this.files.listAsTree() var files = this.files.listAsTree()
if (!Object.keys(files).length) {
files[this.files.type] = {} // default
}
var element = this.treeView.render(files) var element = this.treeView.render(files)
element.className = css.fileexplorer element.className = css.fileexplorer
element.events = this.events element.events = this.events

Loading…
Cancel
Save