mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-05 16:15:43 +00:00
fix: incorrect file name in task files view (#285)
This commit is contained in:
2 files changed
+8
-5
No files matched your search
@@ -57,8 +57,9 @@ class TaskFilesView extends GetView<TaskFilesController> {
|
||||
final meta = controller.task.value!.meta;
|
||||
final file = fileList[index];
|
||||
// if resource is single file, use opts.name as file name
|
||||
final realFileName =
|
||||
meta.res!.name.isEmpty ? file.name : "";
|
||||
final realFileName = meta.res!.name.isEmpty
|
||||
? (meta.opts.name.isEmpty ? file.name : meta.opts.name)
|
||||
: "";
|
||||
final fileRelativePath = file.filePath(realFileName);
|
||||
final filePath = Util.safePathJoin(
|
||||
[meta.opts.path, meta.res!.name, fileRelativePath]);
|
||||
|
||||
@@ -205,9 +205,11 @@ class BuildTaskListView extends GetView {
|
||||
)),
|
||||
],
|
||||
),
|
||||
LinearProgressIndicator(
|
||||
value: getProgress(),
|
||||
),
|
||||
isDone()
|
||||
? Container()
|
||||
: LinearProgressIndicator(
|
||||
value: getProgress(),
|
||||
),
|
||||
],
|
||||
),
|
||||
)).padding(horizontal: 14, top: 8);
|
||||
|
||||
Reference in new issue
Block a user