diff --git a/flutter/lib/desktop/pages/file_manager_page.dart b/flutter/lib/desktop/pages/file_manager_page.dart index 9c72caa5f..476e2e50f 100644 --- a/flutter/lib/desktop/pages/file_manager_page.dart +++ b/flutter/lib/desktop/pages/file_manager_page.dart @@ -644,7 +644,7 @@ class _FileManagerPageState extends State Duration(milliseconds: 500), message: item.jobName, child: Text( - item.jobName, + item.fileName, maxLines: 1, overflow: TextOverflow.ellipsis, ).paddingSymmetric(vertical: 10), diff --git a/flutter/lib/models/file_model.dart b/flutter/lib/models/file_model.dart index 56c9339f3..feaecd356 100644 --- a/flutter/lib/models/file_model.dart +++ b/flutter/lib/models/file_model.dart @@ -500,6 +500,7 @@ class FileModel extends ChangeNotifier { for (var from in items.items) { final jobId = ++_jobId; _jobTable.add(JobProgress() + ..fileName = path.basename(from.path) ..jobName = from.path ..totalSize = from.size ..state = JobState.inProgress @@ -853,7 +854,9 @@ class FileModel extends ChangeNotifier { int fileNum = jobDetail['file_num']; bool isRemote = jobDetail['is_remote']; final currJobId = _jobId++; + String fileName = path.basename(isRemote ? remote : to); var jobProgress = JobProgress() + ..fileName = fileName ..jobName = isRemote ? remote : to ..id = currJobId ..isRemote = isRemote @@ -1121,6 +1124,7 @@ class JobProgress { var fileCount = 0; var isRemote = false; var jobName = ""; + var fileName = ""; var remote = ""; var to = ""; var showHidden = false; @@ -1133,6 +1137,7 @@ class JobProgress { speed = 0; finishedSize = 0; jobName = ""; + fileName = ""; fileCount = 0; remote = ""; to = "";