* opt: uuid

* tweak

* opt: SlideDialog

* mod: fvmrc [skip ci]

* Revert "mod: fvmrc [skip ci]"

This reverts commit 500fd7f454.

* Revert "opt: SlideDialog"

This reverts commit b435a312a6.

---------

Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
My-Responsitories
2026-01-11 10:45:51 +08:00
committed by GitHub
parent 34a839d9e2
commit c40d794180
12 changed files with 66 additions and 55 deletions

View File

@@ -145,7 +145,7 @@ class DetailItem extends StatelessWidget {
final curDownload = downloadService.curDownload.value;
if (curDownload != null &&
curDownload.cid == cid &&
curDownload.status!.index <= 3) {
curDownload.status.isDownloading) {
downloadService.cancelDownload(
isDelete: false,
downloadNext: false,
@@ -352,7 +352,7 @@ class DetailItem extends StatelessWidget {
? theme.colorScheme.primary
: theme.colorScheme.outline;
return progressWidget(
statusMsg: status!.message,
statusMsg: status.message,
progressStr:
status ==
DownloadStatus
@@ -385,7 +385,7 @@ class DetailItem extends StatelessWidget {
}
Widget entryProgress(ThemeData theme) => progressWidget(
statusMsg: entry.status?.message ?? '暂停中',
statusMsg: entry.status.message,
progressStr: entry.totalBytes == 0
? ''
: '${CacheManager.formatSize(entry.downloadedBytes)}/${CacheManager.formatSize(entry.totalBytes)}',