فهرست منبع

minor changes

ashilkn 2 سال پیش
والد
کامیت
dad8a9c234
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 1 1
      lib/db/files_db.dart
  2. 2 1
      lib/ui/viewer/file/file_info_dialog.dart

+ 1 - 1
lib/db/files_db.dart

@@ -1284,7 +1284,7 @@ class FilesDB {
       whereArgs: [uploadedFileID],
       distinct: true,
     );
-    final Set<int> collectionIDsOfFile = {};
+    final collectionIDsOfFile = <int>{};
     for (var result in results) {
       collectionIDsOfFile.add(result['collection_id']);
     }

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

@@ -62,7 +62,8 @@ class _FileInfoWidgetState extends State<FileInfoWidget> {
     final file = widget.file;
     final fileIsBackedup = file.uploadedFileID == null ? false : true;
     Future<Set<int>> allCollectionIDsOfFile;
-    Future<Set<String>> allDeviceFoldersOfFile;
+    Future<Set<String>>
+        allDeviceFoldersOfFile; //Typing this as Future<Set<T>> as it would be easier to implement showing multiple device folders for a file in the future
     if (fileIsBackedup) {
       allCollectionIDsOfFile = FilesDB.instance.getAllCollectionIDsOfFile(
         file.uploadedFileID,