mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 11:06:30 +00:00
huge queue refactoring:
3 queues -> 1 queue send delete validate updates
This commit is contained in:
@@ -273,10 +273,9 @@ public partial class DatasetExplorer
|
||||
if (result != MessageBoxResult.Yes)
|
||||
return;
|
||||
|
||||
var annotations = ThumbnailsView.SelectedItems.Cast<AnnotationThumbnail>().Select(x => x.Annotation)
|
||||
.ToList();
|
||||
var annotationNames = ThumbnailsView.SelectedItems.Cast<AnnotationThumbnail>().Select(x => x.Annotation.Name).ToList();
|
||||
|
||||
await _mediator.Publish(new AnnotationsDeletedEvent(annotations));
|
||||
await _mediator.Publish(new AnnotationsDeletedEvent(annotationNames));
|
||||
ThumbnailsView.SelectedIndex = Math.Min(SelectedAnnotations.Count, tempSelected);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user