If have coins open with history, else with receive
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/WalletExplorerViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/WalletExplorerViewModel.cs
@@ -43,12 +43,12 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
set { this.RaiseAndSetIfChanged(ref _selectedItem, value); }
}
- internal void OpenWallet(string walletName)
+ internal void OpenWallet(string walletName, bool receiveDominant)
{
if (_wallets.Any(x => x.Title == walletName))
return;
- WalletViewModel walletViewModel = new WalletViewModel(walletName);
+ WalletViewModel walletViewModel = new WalletViewModel(walletName, receiveDominant);
_wallets.Add(walletViewModel);
}
}

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/WalletViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/WalletViewModel.cs
@@ -12,8 +12,20 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
{
private ObservableCollection<WalletActionViewModel> _actions;
- public WalletViewModel(string name)
+ public WalletViewModel(string name, bool receiveDominant)
: base(name)
+ {
+ if (receiveDominant)
+ {
+ _actions = new ObservableCollection<WalletActionViewModel>
+ {
+ new SendTabViewModel(this),
+ new CoinJoinTabViewModel(this),
+ new HistoryTabViewModel(this),
+ new ReceiveTabViewModel(this)
+ };
+ }
+ else
{
_actions = new ObservableCollection<WalletActionViewModel>
{
@@ -22,6 +34,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
new CoinJoinTabViewModel(this),
new HistoryTabViewModel(this)
};
+ }
foreach (var vm in _actions)
{

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletViewModel.cs
@@ -174,7 +174,15 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
// Successffully initialized.
IoC.Get<IShell>().RemoveDocument(Owner);
// Open Wallet Explorer tabs
- IoC.Get<WalletExplorerViewModel>().OpenWallet(SelectedWallet);
+ if (Global.WalletService.Coins.Any())
+ {
+ // If already have coins then open with History tab first.
+ IoC.Get<WalletExplorerViewModel>().OpenWallet(SelectedWallet, receiveDominant: false);
+ }
+ else // Else open with Receive tab first.
+ {
+ IoC.Get<WalletExplorerViewModel>().OpenWallet(SelectedWallet, receiveDominant: true);
+ }
}
catch (Exception ex)
{

If have coins open with history, else with receive