Hardware wallett UI fix
MODIFY
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletViewModel.cs
@@ -82,9 +82,14 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
}
});
- LoadCommand = ReactiveCommand.CreateFromTask(LoadWalletAsync, this.WhenAnyValue(x => x.CanLoadWallet));
- TestPasswordCommand = ReactiveCommand.CreateFromTask(() => LoadKeyManagerAsync(requirePassword: true, isHardwareWallet: false), this.WhenAnyValue(x => x.CanTestPassword));
+ LoadCommand = ReactiveCommand.CreateFromTask(async () => await LoadWalletAsync(), this.WhenAnyValue(x => x.CanLoadWallet));
+ TestPasswordCommand = ReactiveCommand.CreateFromTask(async () => await LoadKeyManagerAsync(requirePassword: true, isHardwareWallet: false), this.WhenAnyValue(x => x.CanTestPassword));
OpenFolderCommand = ReactiveCommand.Create(OpenWalletsFolder);
+
+ LoadCommand.ThrownExceptions.Subscribe(ex => Logger.LogWarning<LoadWalletViewModel>(ex));
+ TestPasswordCommand.ThrownExceptions.Subscribe(ex => Logger.LogWarning<LoadWalletViewModel>(ex));
+ OpenFolderCommand.ThrownExceptions.Subscribe(ex => Logger.LogWarning<LoadWalletViewModel>(ex));
+
SetLoadButtonText(IsBusy);
}

MODIFY
WalletWasabi/Hwi/HwiProcessManager.cs
WalletWasabi/Hwi/HwiProcessManager.cs
@@ -15,6 +15,8 @@ using WalletWasabi.Helpers;
using WalletWasabi.Hwi.Models;
using WalletWasabi.Logging;
+using WalletWasabi.Helpers;
+
namespace WalletWasabi.Hwi
{
/// <summary>
@@ -96,7 +98,7 @@ namespace WalletWasabi.Hwi
}
))
{
- process.WaitForExit();
+ await process.WaitForExitAsync();
if (process.ExitCode != 0)
{
throw new IOException($"Command: {command} exited with exit code: {process.ExitCode}, instead of 0.");

Hardware wallett UI fix