add IsLoading property
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModelBase.cs
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModelBase.cs
@@ -13,9 +13,8 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets
public abstract partial class WalletViewModelBase : NavBarItemViewModel, IComparable<WalletViewModelBase>
{
[AutoNotify] private string _titleTip;
-
- [AutoNotify(SetterModifier = AccessModifier.Private)]
- private WalletState _walletState;
+ [AutoNotify] private bool _isLoading;
+ [AutoNotify(SetterModifier = AccessModifier.Private)] private WalletState _walletState;
private string _title;
@@ -33,6 +32,9 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets
OpenCommand = ReactiveCommand.Create(() => Navigate().To(this, NavigationMode.Clear));
SetIcon();
+
+ this.WhenAnyValue(x => x.WalletState)
+ .Subscribe(state => IsLoading = state is > WalletState.Uninitialized and < WalletState.Started);
}
public override string Title

add IsLoading property