Compare commits

..

1 Commits

Author SHA1 Message Date
bggRGjQaUbCoE
9754b061dd check dm state
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-11-12 20:21:11 +08:00
2 changed files with 4 additions and 3 deletions

View File

@@ -76,6 +76,8 @@ class DetailItem extends StatelessWidget {
);
if (res) {
SmartDialog.showToast('更新成功');
} else {
SmartDialog.showToast('更新失败');
}
},
dense: true,

View File

@@ -315,10 +315,9 @@ class DownloadService extends GetxService {
final danmaku = res.removeAt(0).data;
for (var i in res) {
if (!i.isSuccess) {
throw i.toString();
if (i.isSuccess) {
danmaku.elems.addAll(i.data.elems);
}
danmaku.elems.addAll(i.data.elems);
}
res.clear();
await danmakuFile.writeAsBytes(danmaku.writeToBuffer());