mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Add import task
This commit is contained in:
@@ -90,6 +90,14 @@ class _TaskView extends State<TaskView> {
|
||||
return Text("${i18n.exportZipTask} $title",
|
||||
maxLines: 1, overflow: TextOverflow.ellipsis);
|
||||
}
|
||||
if (typ == TaskType.import) {
|
||||
final gid = widget.task.base.gid;
|
||||
final title = tasks.meta.containsKey(gid)
|
||||
? tasks.meta[gid]!.preferredTitle
|
||||
: gid.toString();
|
||||
return Text("${i18n.importTask} $title",
|
||||
maxLines: 1, overflow: TextOverflow.ellipsis);
|
||||
}
|
||||
return Container();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user