remove legalchecker from walletmanager
MODIFY
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
@@ -64,7 +64,7 @@ namespace WalletWasabi.Fluent.ViewModels
global.BitcoinStore.SmartHeaderChain,
global.Synchronizer);
- _walletManagerViewModel = new WalletManagerViewModel(global.WalletManager, global.UiConfig, global.LegalChecker);
+ _walletManagerViewModel = new WalletManagerViewModel(global.WalletManager, global.UiConfig);
_addWalletPage = new AddWalletPageViewModel(
_walletManagerViewModel,

MODIFY
WalletWasabi.Fluent/ViewModels/WalletManagerViewModel.cs
WalletWasabi.Fluent/ViewModels/WalletManagerViewModel.cs
@@ -30,10 +30,9 @@ namespace WalletWasabi.Fluent.ViewModels
[AutoNotify] private ObservableCollection<WalletViewModelBase> _wallets;
[AutoNotify] private bool _anyWalletStarted;
- public WalletManagerViewModel(WalletManager walletManager, UiConfig uiConfig, LegalChecker legalChecker)
+ public WalletManagerViewModel(WalletManager walletManager, UiConfig uiConfig)
{
Model = walletManager;
- LegalChecker = legalChecker;
_walletDictionary = new Dictionary<Wallet, WalletViewModelBase>();
_walletActionsDictionary = new Dictionary<WalletViewModelBase, List<NavBarItemViewModel>>();
_actions = new ObservableCollection<NavBarItemViewModel>();
@@ -102,8 +101,6 @@ namespace WalletWasabi.Fluent.ViewModels
public WalletManager Model { get; }
- private LegalChecker LegalChecker { get; }
-
private void OpenClosedWallet(WalletManager walletManager, UiConfig uiConfig, ClosedWalletViewModel closedWalletViewModel)
{
RemoveWallet(closedWalletViewModel);

remove legalchecker from walletmanager