Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-27 20:54:41 +08:00
parent 25acf3a9bb
commit b51c646415
227 changed files with 768 additions and 764 deletions

View File

@@ -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()),
);

View File

@@ -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()),
);

View File

@@ -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,

View File

@@ -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,

View File

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