mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-05 02:00:13 +08:00
@@ -80,7 +80,7 @@ class DownloadPageController extends GetxController
|
||||
onConfirm: () async {
|
||||
SmartDialog.showLoading();
|
||||
final watchProgress = GStorage.watchProgress;
|
||||
for (var page in allChecked) {
|
||||
for (final page in allChecked) {
|
||||
await watchProgress.deleteAll(
|
||||
page.entries.map((e) => e.cid.toString()),
|
||||
);
|
||||
|
||||
@@ -206,7 +206,7 @@ class _DownloadDetailPageState extends State<DownloadDetailPage>
|
||||
if (isDeleteAll) {
|
||||
await _closeSub();
|
||||
}
|
||||
for (var entry in allChecked) {
|
||||
for (final entry in allChecked) {
|
||||
await watchProgress.deleteAll(
|
||||
allChecked.map((e) => e.cid.toString()),
|
||||
);
|
||||
|
||||
@@ -115,7 +115,7 @@ class _DownloadingPageState extends State<DownloadingPage>
|
||||
final isDownloading =
|
||||
_downloadService.curDownload.value?.status ==
|
||||
DownloadStatus.downloading;
|
||||
for (var entry in allChecked) {
|
||||
for (final entry in allChecked) {
|
||||
await _downloadService.deleteDownload(
|
||||
entry: entry,
|
||||
refresh: false,
|
||||
|
||||
@@ -56,7 +56,7 @@ class DownloadSearchController
|
||||
onConfirm: () async {
|
||||
SmartDialog.showLoading();
|
||||
final allChecked = this.allChecked.toSet();
|
||||
for (var entry in allChecked) {
|
||||
for (final entry in allChecked) {
|
||||
await GStorage.watchProgress.delete(entry.cid.toString());
|
||||
await _downloadService.deleteDownload(
|
||||
entry: entry,
|
||||
|
||||
@@ -68,7 +68,7 @@ class _DownloadPageState extends State<DownloadPage> {
|
||||
final allChecked = _controller.allChecked.toSet();
|
||||
_controller.handleSelect();
|
||||
final list = <BiliDownloadEntryInfo>[];
|
||||
for (var page in allChecked) {
|
||||
for (final page in allChecked) {
|
||||
list.addAll(page.entries);
|
||||
}
|
||||
final res = await Future.wait(
|
||||
|
||||
Reference in New Issue
Block a user