fix ui bugs, fix RefreshThumbnails method

This commit is contained in:
Alex Bezdieniezhnykh
2025-04-14 19:43:14 +03:00
parent dd42292eee
commit 1287c13516
5 changed files with 62 additions and 27 deletions
+2 -1
View File
@@ -147,7 +147,7 @@ public class AnnotationService : INotificationHandler<AnnotationsDeletedEvent>
: AnnotationStatus.Created;
await db.Detections.DeleteAsync(x => x.AnnotationName == fName, token: token);
await db.BulkCopyAsync(detections, cancellationToken: token);
if (ann != null)
{
await db.Annotations
@@ -177,6 +177,7 @@ public class AnnotationService : INotificationHandler<AnnotationsDeletedEvent>
};
await db.InsertAsync(ann, token: token);
}
await db.BulkCopyAsync(detections, cancellationToken: token);
return ann;
});