forked from amkovkov/GranuSightSoftware2
fix: CameraService view finder
Image capturing while view finder work
This commit is contained in:
@@ -23,7 +23,7 @@ public partial class MainViewModel : ViewModelBase
|
||||
ResourcesViewModel = resourcesViewModel;
|
||||
ButtonClick = new RelayCommand(() =>
|
||||
{
|
||||
cameraService.CaptureImage(CancellationToken.None, 10).ContinueWith(image => Image = image.Result);
|
||||
Task.Run(() => cameraService.CaptureImage(CancellationToken.None, 10).ContinueWith(image => Image = image.Result));
|
||||
});
|
||||
|
||||
_logger.LogInformation("{} initialized", nameof(MainViewModel));
|
||||
|
||||
Reference in New Issue
Block a user