Move Settings up to remove null exception
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModel.cs
@@ -46,6 +46,8 @@ public partial class WalletViewModel : WalletViewModelBase
? new CompositeDisposable()
: throw new NotSupportedException($"Cannot open {GetType().Name} before closing it.");
+ Settings = new WalletSettingsViewModel(this);
+
var balanceChanged =
Observable.FromEventPattern(
Wallet.TransactionProcessor,
@@ -61,8 +63,6 @@ public partial class WalletViewModel : WalletViewModelBase
History = new HistoryViewModel(this, balanceChanged);
- Settings = new WalletSettingsViewModel(this);
-
balanceChanged
.Subscribe(_ => IsWalletBalanceZero = wallet.Coins.TotalAmount() == Money.Zero)
.DisposeWith(Disposables);

Move Settings up to remove null exception