[Skip CI] Update PrivacyLevelValueConverter
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinListView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/CoinListView.xaml
</ToolTip.Tip>
</Path>
<TextBlock Grid.Column="2" Text="{Binding AmountBtc}" />
- <TextBlock Grid.Column="3" Text="{Binding PrivacyLevel, Converter={StaticResource PrivacyLevelValueConverter}}" Margin="20 0 0 0" />
+ <TextBlock Grid.Column="3" Text="{Binding AnonymitySet, Converter={StaticResource PrivacyLevelValueConverter}}" Margin="20 0 0 0" />
<TextBlock Grid.Column="4" Text="{Binding History}" />
<TextBlock Text="" Grid.Column="5" />
</Grid>

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
@@ -13,7 +13,6 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
public class CoinViewModel : ViewModelBase
{
private bool _isSelected;
- private int _privacyLevel;
public CoinViewModel(SmartCoin model)
{
@@ -61,12 +60,6 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
public int Height => Model.Height;
- public int PrivacyLevel
- {
- get { return _privacyLevel; }
- set { this.RaiseAndSetIfChanged(ref _privacyLevel, value); }
- }
-
public string TransactionId => Model.TransactionId.ToString();
public uint OutputIndex => Model.Index;

MODIFY
WalletWasabi.Gui/Converters/PrivacyLevelValueConverter.cs
WalletWasabi.Gui/Converters/PrivacyLevelValueConverter.cs
@@ -10,19 +10,19 @@ namespace WalletWasabi.Gui.Converters
{
if (value is int integer)
{
- if (integer <= 0)
+ if (integer <= 1)
{
return "None";
}
- else if (integer >= 1 && integer <= 6)
+ else if (integer < 21)
{
return "Some";
}
- else if (integer >= 7 && integer <= 49)
+ else if (integer < 49)
{
return "Fine";
}
- else if (integer > 49)
+ else
{
return "Strong";
}

[Skip CI] Update PrivacyLevelValueConverter