Add message to hwi ui while searching
MODIFY
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletView.xaml
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletView.xaml
</StackPanel>
</StackPanel>
<controls:GroupBox Title="{Binding Title}" TextBlock.FontSize="30" Padding="20" BorderThickness="0">
+ <DockPanel LastChildFill="True">
+ <Grid Classes="content" DockPanel.Dock="Top" IsVisible="{Binding IsHwWalletSearchTextVisible}" Margin="10">
+ <StackPanel>
+ <StackPanel Orientation="Horizontal">
+ <controls:Spinner Height="15" Width="15" Margin="0 0 8 0" />
+ <TextBlock Text="Heads Up!" FontWeight="Bold" />
+ </StackPanel>
+ <TextBlock Text="Looking for hardware wallets. Make sure you set up and logged into the device, usually with a PIN. Some hardware wallets are picky about their USB cables, so you may want to try out multiple ones." TextWrapping="Wrap" />
+ </StackPanel>
+ </Grid>
<Grid Classes="content">
<ListBox Items="{Binding Wallets}" SelectedItem="{Binding SelectedWallet, Mode=TwoWay}" />
</Grid>
+ </DockPanel>
</controls:GroupBox>
</DockPanel>
</UserControl>

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletViewModel.cs
@@ -38,6 +38,7 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
private string _successMessage;
private bool _isBusy;
private string _loadButtonText;
+ private bool _isHwWalletSearchTextVisible;
private WalletManagerViewModel Owner { get; }
public LoadWalletType LoadWalletType { get; }
@@ -141,6 +142,12 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
set => this.RaiseAndSetIfChanged(ref _successMessage, value);
}
+ public bool IsHwWalletSearchTextVisible
+ {
+ get => _isHwWalletSearchTextVisible;
+ set => this.RaiseAndSetIfChanged(ref _isHwWalletSearchTextVisible, value);
+ }
+
private void SetWarningMessage(string message)
{
WarningMessage = message;
@@ -216,6 +223,7 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
{
Dispatcher.UIThread.PostLogException(async () =>
{
+ IsHwWalletSearchTextVisible = true;
try
{
var hwis = await HwiProcessManager.EnumerateAsync();
@@ -245,6 +253,10 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
SetWarningMessage(ex.ToString());
Logger.LogError<LoadWalletViewModel>(ex);
}
+ finally
+ {
+ IsHwWalletSearchTextVisible = false;
+ }
});
}
else

Add message to hwi ui while searching