mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 21:56:31 +00:00
stop inference on stop pressed
small fixes
This commit is contained in:
@@ -25,7 +25,8 @@ public class AnnotatorEventHandler(
|
||||
FormState formState,
|
||||
AnnotationService annotationService,
|
||||
ILogger<AnnotatorEventHandler> logger,
|
||||
IOptions<DirectoriesConfig> dirConfig)
|
||||
IOptions<DirectoriesConfig> dirConfig,
|
||||
IInferenceService inferenceService)
|
||||
:
|
||||
INotificationHandler<KeyEvent>,
|
||||
INotificationHandler<AnnClassSelectedEvent>,
|
||||
@@ -141,6 +142,7 @@ public class AnnotatorEventHandler(
|
||||
}
|
||||
break;
|
||||
case PlaybackControlEnum.Stop:
|
||||
inferenceService.StopInference();
|
||||
await mainWindow.DetectionCancellationSource.CancelAsync();
|
||||
mediaPlayer.Stop();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user