Browse Source

Show collection name if file is part of collection

Neeraj Gupta 3 years ago
parent
commit
7f99a80173
1 changed files with 5 additions and 2 deletions
  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,
         ),