support click "(choose file)" to cancel current operation

This commit is contained in:
MaysWind 2018-08-14 01:18:04 +08:00
parent 4305b80c21
commit 0aceed22f4

View file

@ -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 () {