add open file

This commit is contained in:
2020-12-25 00:33:11 +01:00
parent edfc98e08e
commit e9b2231581
5 changed files with 43 additions and 9 deletions

View File

@@ -43,9 +43,9 @@ class Controller {
this.model.dirTree().then(
function (value) {
view.removeDirTree();
view.drawDirTree(value);
view.drawDirTree(value, undefined, this);
view.dirTreeToggler();
},
}.bind(this),
function (error) {}
);
}
@@ -61,4 +61,13 @@ class Controller {
this.view.closeSettings();
console.log(repo.value);
}
loadFile(file) {
this.model.readFile(file).then(
function (value) {
this.view.openFile(value);
}.bind(this),
function (error) {}
);
}
}