diff --git a/res/app/control-panes/filesystem/fs-controller.js b/res/app/control-panes/filesystem/fs-controller.js index 7238148b..9a7af44e 100644 --- a/res/app/control-panes/filesystem/fs-controller.js +++ b/res/app/control-panes/filesystem/fs-controller.js @@ -1,4 +1,4 @@ -module.exports = function FsCtrl($scope, $timeout) { +module.exports = function FsCtrl($scope) { $scope.search = '' $scope.files = []; $scope.paths = []; @@ -43,8 +43,5 @@ module.exports = function FsCtrl($scope, $timeout) { // init - // $scope.list($scope.dir); // FIXME(ssx): can't call immediately, do not known why. - $timeout(function(){ - listdir(); - }, 800); + listdir($scope.dir); }