update comment in QrCode.cs
MODIFY
WalletWasabi.Fluent/Controls/QrCode.cs
WalletWasabi.Fluent/Controls/QrCode.cs
@@ -55,9 +55,8 @@ namespace WalletWasabi.Fluent.Controls
.ObserveOn(RxApp.TaskpoolScheduler)
.Subscribe(_ =>
{
- // The error is thrown also in ReceiveTabViewModel -> SaveQRCodeCommand.ThrownExceptions.
- // However we need to catch it here too but to avoid duplicate logging the following line commented out.
- // Logger.LogWarning(ex);
+ // The error is thrown also in ReceiveAddressViewModel -> SaveQrCodeCommand.ThrownExceptions.
+ // However we need to catch it here too but to avoid duplicate logging we don't do anything here.
});
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Receive/ReceiveAddressViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Receive/ReceiveAddressViewModel.cs
@@ -65,6 +65,10 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Receive
}
});
+ SaveQrCodeCommand.ThrownExceptions
+ .ObserveOn(RxApp.TaskpoolScheduler)
+ .Subscribe(ex => Logger.LogError(ex));
+
NextCommand = CancelCommand;
}
@@ -72,7 +76,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Receive
public ICommand CopyAddressCommand { get; }
- public ICommand SaveQrCodeCommand { get; }
+ public ReactiveCommand<Unit, Unit> SaveQrCodeCommand { get; }
public ICommand ShowOnHwWalletCommand { get; }

update comment in QrCode.cs