Bind IsOsPlatformSupported to view
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
@@ -52,6 +52,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
[AutoNotify] private ObservableCollection<string> _labels;
[AutoNotify] private bool _isPayJoin;
[AutoNotify] private string? _payJoinEndPoint;
+ [AutoNotify] private bool _isQrButtonVisible;
private bool _parsingUrl;
@@ -61,6 +62,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
_wallet = wallet;
_transactionInfo = new TransactionInfo();
_labels = new ObservableCollection<string>();
+ _isQrButtonVisible = WebcamQrReader.IsOsPlatformSupported;
ExchangeRate = _wallet.Synchronizer.UsdExchangeRate;
PriorLabels = new();

MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/SendView.axaml
WalletWasabi.Fluent/Views/Wallets/Send/SendView.axaml
ToolTip.Tip="Paste"
NormalIcon="{StaticResource paste_regular}"
ClickIcon="{StaticResource copy_confirmed}" />
- <c:AnimatedButton KeyboardNavigation.IsTabStop="False"
+ <c:AnimatedButton IsVisible="{Binding IsQrButtonVisible}"
+ KeyboardNavigation.IsTabStop="False"
Focusable="False"
Command="{Binding QRCommand}"
ToolTip.Tip="Scan QR Code"

Bind IsOsPlatformSupported to view