소스 검색

Merge pull request #659 from ente-io/text_fix

Minor bug fixes
Ashil 2 년 전
부모
커밋
4ea97075e0
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      lib/db/device_files_db.dart
  2. 5 1
      lib/ui/collections_gallery_widget.dart

+ 1 - 1
lib/db/device_files_db.dart

@@ -392,7 +392,7 @@ extension DeviceFiles on FilesDB {
     final db = await database;
     final fileRows = await db.rawQuery(
       '''SELECT * FROM FILES  f JOIN device_files df on f.local_id = df.id 
-      and df.path_id= ? order by f.modification_time DESC limit 1;
+      and df.path_id= ? order by f.creation_time DESC limit 1;
           ''',
       [pathID],
     );

+ 5 - 1
lib/ui/collections_gallery_widget.dart

@@ -102,7 +102,11 @@ class _CollectionsGalleryWidgetState extends State<CollectionsGalleryWidget>
         }
       },
     );
-    result.matched.removeWhere((element) => element.thumbnail == null);
+    result.matched.removeWhere(
+      (element) =>
+          element.thumbnail == null ||
+          (element.collection.publicURLs?.isNotEmpty ?? false),
+    );
     return result.matched + result.unmatched;
   }