reduce complexity.
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/WalletViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/WalletViewModel.cs
@@ -107,29 +107,15 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
shell.AddOrSelectDocument(sendTab);
}
- if (receiveTab is { })
- {
shell.AddOrSelectDocument(receiveTab);
- }
-
- if (coinjoinTab is { })
- {
shell.AddOrSelectDocument(coinjoinTab);
- }
-
- if (historyTab is { })
- {
shell.AddOrSelectDocument(historyTab);
- }
// Select tab
if (receiveDominant)
- {
- if (receiveTab is { })
{
shell.AddOrSelectDocument(receiveTab);
}
- }
else
{
WasabiDocumentTabViewModel tabToOpen = Global.UiConfig.LastActiveTab switch

reduce complexity.