fix(queue): clarify and coalesce verification progress

This commit is contained in:
zarzet
2026-07-23 09:57:02 +07:00
parent 685392f073
commit 480a96bd0e
23 changed files with 335 additions and 17 deletions
+15
View File
@@ -93,6 +93,21 @@ String _formatDownloadProgressLabel(BuildContext context, DownloadItem item) {
);
}
if (item.error == 'Waiting for verification') {
return context.l10n.queueWaitingForVerification;
}
switch (item.preparationStage) {
case 'checking_session':
return context.l10n.queueCheckingDownloadSession;
case 'resolving_metadata':
return context.l10n.queueResolvingDownloadMetadata;
case 'resolving_stream':
return context.l10n.queueResolvingDownloadStream;
}
if (item.error == 'Retrying after verification') {
return context.l10n.queueResumingAfterVerification;
}
return context.l10n.queueDownloadStarting;
}