Update HardwareWalletAuthDialog.
MODIFY
WalletWasabi.Fluent/ViewModels/Dialogs/Authorization/HardwareWalletAuthDialogViewModel.cs
WalletWasabi.Fluent/ViewModels/Dialogs/Authorization/HardwareWalletAuthDialogViewModel.cs
@@ -2,6 +2,7 @@ using System;
using System.Threading;
using System.Threading.Tasks;
using NBitcoin;
+using WalletWasabi.Fluent.Helpers;
using WalletWasabi.Fluent.Model;
using WalletWasabi.Hwi;
using WalletWasabi.Logging;
@@ -24,16 +25,14 @@ namespace WalletWasabi.Fluent.ViewModels.Dialogs.Authorization
_wallet = wallet;
_transactionAuthorizationInfo = transactionAuthorizationInfo;
- WalletIcon = _wallet.KeyManager.Icon;
+ WalletType = WalletHelpers.GetType(wallet.KeyManager);
SetupCancel(enableCancel: true, enableCancelOnEscape: true, enableCancelOnPressed: true);
EnableBack = true;
}
- public string? WalletIcon { get; }
-
- public bool IsHardwareWallet => true;
+ public WalletType WalletType { get; }
protected override async Task<bool> Authorize()
{

MODIFY
WalletWasabi.Fluent/Views/Dialogs/Authorization/HardwareWalletAuthDialogView.axaml
WalletWasabi.Fluent/Views/Dialogs/Authorization/HardwareWalletAuthDialogView.axaml
IsBusy="{Binding IsBusy}"
ScrollViewer.VerticalScrollBarVisibility="Disabled">
<Viewbox MaxHeight="150">
- <Image>
- <Image.Source>
- <MultiBinding Converter="{x:Static conv:WalletIconConverter.TypesToImage}">
- <Binding Path="WalletIcon" Converter="{x:Static conv:WalletIconConverter.StringToType}" />
- <Binding Path="IsHardwareWallet" Converter="{x:Static conv:WalletIconConverter.BoolToType}" />
- </MultiBinding>
- </Image.Source>
- </Image>
+ <Image Source="{Binding WalletType, Converter={x:Static conv:WalletIconConverter.TypesToImage}}"/>
</Viewbox>
</c:ContentArea>
</UserControl>

Update HardwareWalletAuthDialog.