diff --git a/src/scripts/controllers/task-detail.js b/src/scripts/controllers/task-detail.js index 7a48ca4..fcd7fb7 100644 --- a/src/scripts/controllers/task-detail.js +++ b/src/scripts/controllers/task-detail.js @@ -264,8 +264,12 @@ }; $scope.showChooseFilesToolbar = function () { - pauseDownloadTaskRefresh = true; - $scope.context.showChooseFilesToolbar = true; + if (!$scope.context.showChooseFilesToolbar) { + pauseDownloadTaskRefresh = true; + $scope.context.showChooseFilesToolbar = true; + } else { + $scope.cancelChooseFiles(); + } }; $scope.isAnyFileSelected = function () {