Move up OSPlatform check
MODIFY
WalletWasabi.Fluent/Models/WebcamQrReader.cs
WalletWasabi.Fluent/Models/WebcamQrReader.cs
@@ -30,15 +30,15 @@ namespace WalletWasabi.Fluent.Models
{
using (await ScanningTaskLock.LockAsync().ConfigureAwait(false))
{
+ if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
+ {
+ throw new NotImplementedException("This operating system is not supported.");
+ }
ScanningTask = Task.Run(() =>
{
VideoCapture? camera = null;
try
{
- if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
- {
- throw new NotImplementedException("This operating system is not supported.");
- }
camera = OpenCamera();
RequestEnd = false;
Scan(camera);

Move up OSPlatform check