Moved PrivacyRingMaxItemCount to UIConstants
MODIFY
WalletWasabi.Fluent/ViewModels/UIConstants.cs
WalletWasabi.Fluent/ViewModels/UIConstants.cs
@@ -3,4 +3,5 @@ namespace WalletWasabi.Fluent.ViewModels;
public static class UIConstants
{
public const char PrivacyChar = '#';
+ public const int PrivacyRingMaxItemCount = 100;
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/PrivacyRing/PrivacyBarViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/PrivacyRing/PrivacyBarViewModel.cs
@@ -16,7 +16,6 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.Tiles.PrivacyRing;
public partial class PrivacyBarViewModel : ViewModelBase
{
- private const int MaximumCoinCount = 100;
private readonly SourceList<PrivacyBarItemViewModel> _itemsSourceList = new();
private IObservable<Unit> _coinsUpdated;
@@ -69,7 +68,7 @@ public partial class PrivacyBarViewModel : ViewModelBase
var result = Enumerable.Empty<PrivacyBarItemViewModel>();
- if (coinCount < MaximumCoinCount)
+ if (coinCount < UIConstants.PrivacyRingMaxItemCount)
{
result = CreateCoinSegments(pockets, coinCount);
}

Moved PrivacyRingMaxItemCount to UIConstants