2.0.14
This commit is contained in:
@@ -149,7 +149,8 @@ public abstract class BaseRecognitionControl: IRecognitionControl
|
||||
SessionEnded = DateTime.Now
|
||||
});
|
||||
_loadingService.StopLoading($"Stopping {_settings.CameraName}");
|
||||
IsPaused = false; // ensure paused is reset
|
||||
// note: recipe can be stared paused
|
||||
//IsPaused = false; // ensure paused is reset
|
||||
}
|
||||
}
|
||||
|
||||
@@ -157,6 +158,7 @@ public abstract class BaseRecognitionControl: IRecognitionControl
|
||||
{
|
||||
lock (_lock)
|
||||
{
|
||||
Log.Information("Pausing recognition");
|
||||
IsPaused = true;
|
||||
}
|
||||
}
|
||||
@@ -165,6 +167,7 @@ public abstract class BaseRecognitionControl: IRecognitionControl
|
||||
{
|
||||
lock (_lock)
|
||||
{
|
||||
Log.Information("Resuming recognition");
|
||||
IsPaused = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -156,14 +156,14 @@ namespace VisionBuilder.UI.Common
|
||||
|
||||
}
|
||||
|
||||
[RelayCommand(CanExecute = nameof(IsResumed))]
|
||||
[RelayCommand]
|
||||
public void Pause()
|
||||
{
|
||||
_recognitionControl.Pause();
|
||||
IsPaused = true;
|
||||
}
|
||||
|
||||
[RelayCommand(CanExecute = nameof(IsPaused))]
|
||||
[RelayCommand]
|
||||
public void Resume()
|
||||
{
|
||||
_recognitionControl.Resume();
|
||||
|
||||
Reference in New Issue
Block a user