mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:46:30 +00:00
add silent detection - don't send to queue if enable
This commit is contained in:
@@ -5,4 +5,5 @@ public class UIConfig
|
||||
public double LeftPanelWidth { get; set; }
|
||||
public double RightPanelWidth { get; set; }
|
||||
public bool GenerateAnnotatedImage { get; set; }
|
||||
public bool SilentDetection { get; set; }
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ public class AnnotationService : INotificationHandler<AnnotationsDeletedEvent>
|
||||
if (_uiConfig.GenerateAnnotatedImage)
|
||||
await _galleryService.CreateAnnotatedImage(annotation, token);
|
||||
|
||||
if (!fromQueue) //Send to queue only if we're not getting from queue already
|
||||
if (!fromQueue && !_uiConfig.SilentDetection) //Send to queue only if we're not getting from queue already
|
||||
await _producer.SendToInnerQueue(annotation, token);
|
||||
|
||||
await _mediator.Publish(new AnnotationCreatedEvent(annotation), token);
|
||||
|
||||
Reference in New Issue
Block a user