浏览代码

Show collection name if file is part of collection

Neeraj Gupta 3 年之前
父节点
当前提交
7f99a80173
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      lib/ui/viewer/file/file_info_dialog.dart

+ 5 - 2
lib/ui/viewer/file/file_info_dialog.dart

@@ -192,8 +192,11 @@ class _FileInfoWidgetState extends State<FileInfoWidget> {
           child: Icon(Icons.folder_outlined),
         ),
         title: Text(
-          file.deviceFolder ??
-              CollectionsService.instance
+          file.collectionID != null
+              ? CollectionsService.instance
+                  .getCollectionByID(file.collectionID)
+                  .name
+              : CollectionsService.instance
                   .getCollectionByID(file.collectionID)
                   .name,
         ),