Use most used labels
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Receive/ReceiveViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Receive/ReceiveViewModel.cs
@@ -36,7 +36,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Receive
_uiConfig = uiConfig;
WasabiWallet = wallet.Wallet;
_labels = new ObservableCollection<string>();
- _suggestions = GetLabels(walletManager, bitcoinStore).ToHashSet();
+ // _suggestions = GetLabels(walletManager, bitcoinStore).ToHashSet();
var allLabels = GetLabels(walletManager, bitcoinStore);
var mostUsedLabels = allLabels.GroupBy(x => x)
@@ -47,6 +47,8 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Receive
})
.OrderByDescending(x => x.Count);
+ _suggestions = mostUsedLabels.Select(x => x.Label).ToHashSet();
+
SelectionMode = NavBarItemSelectionMode.Button;
SetupCancel(enableCancel: true, enableCancelOnEscape: true, enableCancelOnPressed: true);

Use most used labels