fix complexity issues.
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/WalletExplorerViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/WalletExplorerViewModel.cs
@@ -47,7 +47,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
set => this.RaiseAndSetIfChanged(ref _selectedItem, value);
}
- internal void OpenWallet(Wallet wallet, bool receiveDominant, bool select)
+ internal void OpenWallet(Wallet wallet, bool receiveDominant, bool select = true)
{
if (_wallets.OfType<WalletViewModel>().Any(x => x.Title == wallet.WalletName))
{

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/LoadWallets/LoadWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/LoadWallets/LoadWalletViewModel.cs
@@ -461,11 +461,11 @@ namespace WalletWasabi.Gui.Tabs.WalletManager.LoadWallets
if (wallet.Coins.Any())
{
// If already have coins then open the last active tab first.
- IoC.Get<WalletExplorerViewModel>().OpenWallet(wallet, receiveDominant: false, true);
+ IoC.Get<WalletExplorerViewModel>().OpenWallet(wallet, receiveDominant: false);
}
else // Else open with Receive tab first.
{
- IoC.Get<WalletExplorerViewModel>().OpenWallet(wallet, receiveDominant: true, true);
+ IoC.Get<WalletExplorerViewModel>().OpenWallet(wallet, receiveDominant: true);
}
}
catch (Exception ex)

fix complexity issues.