Improve text, handle failures
MODIFY
WalletWasabi.Gui/MainWindow.xaml.cs
WalletWasabi.Gui/MainWindow.xaml.cs
@@ -172,8 +172,17 @@ namespace WalletWasabi.Gui
var walletManagerViewModel = new WalletManagerViewModel();
IoC.Get<IShell>().AddDocument(walletManagerViewModel);
+ var isAnyHardwareWalletAvailable = false;
+ try
+ {
var res = await HwiProcessManager.EnumerateAsync();
- var isAnyHardwareWalletAvailable = res.Any();
+ isAnyHardwareWalletAvailable = res.Any();
+ }
+ catch (Exception ex)
+ {
+ Logging.Logger.LogWarning<MainWindow>(ex);
+ }
+
if (isAnyHardwareWalletAvailable)
{
walletManagerViewModel.SelectHardwareWallet();

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletView.xaml
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletView.xaml
</StackPanel>
<StackPanel IsVisible="{Binding IsHardwareWallet}" Spacing="8">
<StackPanel>
- <TextBlock Text="Hardware Wallets + CoinJoins?" FontWeight="Bold" />
- <TextBlock Text="Currently all hardware wallets on the market are incompatible with coinjoins." />
+ <TextBlock Text="Limitations?" FontWeight="Bold" />
+ <TextBlock Text="- Currently all hardware wallets on the market are incompatible with coinjoins." />
+ <TextBlock Text="- Wasabi only supports bech32 hardware wallet keypaths." />
</StackPanel>
<StackPanel>
- <TextBlock Text="Which hardware wallets are supported by Wasabi?" FontWeight="Bold" />
+ <TextBlock Text="Which hardware wallets are currently supported?" FontWeight="Bold" />
<TextBlock Text="- ColdCard" TextWrapping="Wrap" />
</StackPanel>
</StackPanel>

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletViewModel.cs
@@ -206,6 +206,8 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
if (IsHardwareWallet)
{
Dispatcher.UIThread.PostLogException(async () =>
+ {
+ try
{
var hwis = await HwiProcessManager.EnumerateAsync();
if (hwis.Any())
@@ -227,6 +229,12 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
SelectedWallet = Wallets.FirstOrDefault();
SetWalletStates();
}
+ }
+ catch (Exception ex)
+ {
+ SetWarningMessage(ex.ToString());
+ Logger.LogError<LoadWalletViewModel>(ex);
+ }
});
}
else

Improve text, handle failures