Dont access locator 2 times.
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/WalletExplorerViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/WalletExplorerViewModel.cs
@@ -39,10 +39,9 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
_walletDictionary = new Dictionary<Wallet, WalletViewModelBase>();
- WalletManager = Locator.Current.GetService<Global>().WalletManager;
-
- UiConfig = Locator.Current.GetService<Global>().UiConfig;
-
+ var global = Locator.Current.GetService<Global>();
+ WalletManager = global.WalletManager;
+ UiConfig = global.UiConfig;
Observable.FromEventPattern<WalletState>(WalletManager, nameof(WalletManager.WalletStateChanged))
.ObserveOn(RxApp.MainThreadScheduler)
.Subscribe(x =>

Dont access locator 2 times.

Co-Authored-By: Lucas Ontivero <lontivero@users.noreply.github.com>