Add updateTagTranslation display

This commit is contained in:
2024-10-03 12:34:08 +00:00
committed by GitHub
parent ec4d3859f2
commit f7a000b806
8 changed files with 1080 additions and 772 deletions

View File

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