mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 13:26:30 +00:00
remove fix, todo: test
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System.Windows.Input;
|
||||
using Azaion.Common.DTO;
|
||||
using Azaion.Common.DTO.Queue;
|
||||
using Azaion.Common.Events;
|
||||
using Azaion.Common.Services;
|
||||
using MediatR;
|
||||
|
||||
@@ -19,7 +20,7 @@ public class DatasetExplorerEventHandler(
|
||||
{ Key.Delete, PlaybackControlEnum.RemoveSelectedAnns },
|
||||
{ Key.X, PlaybackControlEnum.RemoveAllAnns },
|
||||
{ Key.Escape, PlaybackControlEnum.Close },
|
||||
{ Key.A, PlaybackControlEnum.ValidateAnnotations}
|
||||
{ Key.V, PlaybackControlEnum.ValidateAnnotations}
|
||||
};
|
||||
|
||||
public async Task Handle(DatasetExplorerControlEvent notification, CancellationToken cancellationToken)
|
||||
@@ -74,13 +75,11 @@ public class DatasetExplorerEventHandler(
|
||||
datasetExplorer.SwitchTab(toEditor: false);
|
||||
break;
|
||||
case PlaybackControlEnum.ValidateAnnotations:
|
||||
var annotations = datasetExplorer.ThumbnailsView.SelectedItems.Cast<AnnotationImageView>()
|
||||
var annotations = datasetExplorer.ThumbnailsView.SelectedItems.Cast<AnnotationThumbnail>()
|
||||
.Select(x => x.Annotation)
|
||||
.ToList();
|
||||
foreach (var annotation in annotations)
|
||||
{
|
||||
await annotationService.ValidateAnnotation(annotation, cancellationToken);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user