mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-06 05:49:03 +08:00
Add updateTagTranslation display
This commit is contained in:
@@ -57,6 +57,10 @@ class _TaskView extends State<TaskView> {
|
||||
case TaskType.import:
|
||||
final progress = widget.task.progress as TaskImportProgress;
|
||||
return progress.importedPage / progress.totalPage;
|
||||
case TaskType.updateTagTranslation:
|
||||
final progress =
|
||||
widget.task.progress as TaskUpdateTagTranslationProgress;
|
||||
return progress.addedTag / progress.totalTag;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,6 +102,10 @@ class _TaskView extends State<TaskView> {
|
||||
return Text("${i18n.importTask} $title",
|
||||
maxLines: 1, overflow: TextOverflow.ellipsis);
|
||||
}
|
||||
if (typ == TaskType.updateTagTranslation) {
|
||||
return Text(i18n.updateTagTranslation,
|
||||
maxLines: 1, overflow: TextOverflow.ellipsis);
|
||||
}
|
||||
return Container();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user