Collapse unselected pockets
MODIFY
WalletWasabi.Fluent/ViewModels/CoinControl/CoinSelectorViewModel.cs
WalletWasabi.Fluent/ViewModels/CoinControl/CoinSelectorViewModel.cs
@@ -29,7 +29,8 @@ public partial class CoinSelectorViewModel : ViewModelBase, IDisposable
var pockets = walletViewModel.Wallet.GetPockets();
var pocketItems = CreatePocketItems(pockets);
- SyncSelectedItems(pocketItems, initialCoinSelection);
+ //SyncSelectedItems(pocketItems, initialCoinSelection);
+ CollapseUnselectedPockets(pocketItems);
var pocketColumn = PocketColumn();
TreeDataGridSource = new HierarchicalTreeDataGridSource<CoinControlItemViewModelBase>(pocketItems)
@@ -89,6 +90,14 @@ public partial class CoinSelectorViewModel : ViewModelBase, IDisposable
}
}
+ private static void CollapseUnselectedPockets(IReadOnlyCollection<PocketCoinControlItemViewModel> pocketItems)
+ {
+ foreach (var pocket in pocketItems.Where(x => x.IsSelected == false))
+ {
+ pocket.IsExpanded = false;
+ }
+ }
+
private static int GetLabelPriority(CoinControlItemViewModelBase coin)
{
if (coin.Labels == CoinPocketHelper.PrivateFundsText)

Collapse unselected pockets