Add topSuggestionsCount parameter
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Labels/SuggestionLabelsViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Labels/SuggestionLabelsViewModel.cs
@@ -19,7 +19,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Labels
private readonly ObservableCollectionExtended<string> _labels;
private Action<string>? _addTag;
- public SuggestionLabelsViewModel()
+ public SuggestionLabelsViewModel(int topSuggestionsCount)
{
_labels = new ObservableCollectionExtended<string>();
var allLabels = WalletHelpers.GetLabels();
@@ -48,7 +48,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Labels
.Connect()
.Filter(suggestionLabelsFilter)
.Sort(SortExpressionComparer<SuggestionLabelViewModel>.Descending(x => x.Count))
- .Top(3)
+ .Top(topSuggestionsCount)
.ObserveOn(RxApp.MainThreadScheduler)
.Bind(_suggestionLabelResults)
.Subscribe();

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Receive/ReceiveViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Receive/ReceiveViewModel.cs
@@ -32,7 +32,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Receive
EnableBack = false;
- _suggestionLabels = new SuggestionLabelsViewModel();
+ _suggestionLabels = new SuggestionLabelsViewModel(3);
NextCommand = ReactiveCommand.Create(OnNext, _suggestionLabels.Labels.ToObservableChangeSet().Select(_ => _suggestionLabels.Labels.Count > 0));

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
@@ -63,7 +63,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
_to = "";
_wallet = wallet;
_transactionInfo = new TransactionInfo();
- _suggestionLabels = new SuggestionLabelsViewModel();
+ _suggestionLabels = new SuggestionLabelsViewModel(3);
ExchangeRate = _wallet.Synchronizer.UsdExchangeRate;
PriorLabels = new();

Add topSuggestionsCount parameter