Unify call of TrySetWalletStates
MODIFY
WalletWasabi.Gui/Tabs/WalletManager/HardwareWallets/ConnectHardwareWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/HardwareWallets/ConnectHardwareWalletViewModel.cs
@@ -59,6 +59,9 @@ namespace WalletWasabi.Gui.Tabs.WalletManager.HardwareWallets
this.WhenAnyValue(x => x.IsBusy)
.Subscribe(_ => TrySetWalletStates());
+ this.WhenAnyValue(x => x.IsBusy)
+ .Subscribe(_ => TrySetWalletStates());
+
LoadCommand = ReactiveCommand.CreateFromTask(LoadWalletAsync, this.WhenAnyValue(x => x.CanLoadWallet));
ImportColdcardCommand = ReactiveCommand.CreateFromTask(async () =>
{
@@ -185,19 +188,7 @@ namespace WalletWasabi.Gui.Tabs.WalletManager.HardwareWallets
public bool IsHardwareBusy
{
get => _isHardwareBusy;
- set
- {
- this.RaiseAndSetIfChanged(ref _isHardwareBusy, value);
-
- try
- {
- TrySetWalletStates();
- }
- catch (Exception ex)
- {
- Logger.LogInfo(ex);
- }
- }
+ set => this.RaiseAndSetIfChanged(ref _isHardwareBusy, value);
}
public ReactiveCommand<Unit, Unit> LoadCommand { get; }

Unify call of TrySetWalletStates