Refresh MixUntilAnonymitySet on PrivacyLevel change
MODIFY
WalletWasabi.Gui/Config.cs
WalletWasabi.Gui/Config.cs
@@ -110,6 +110,7 @@ namespace WalletWasabi.Gui
{
if (_privacyLevelSome != value)
{
+ RefreshMixUntilValue(_privacyLevelSome, value);
_privacyLevelSome = value;
if (ServiceConfiguration != default)
{
@@ -128,6 +129,7 @@ namespace WalletWasabi.Gui
{
if (_privacyLevelFine != value)
{
+ RefreshMixUntilValue(_privacyLevelFine, value);
_privacyLevelFine = value;
if (ServiceConfiguration != default)
{
@@ -146,6 +148,7 @@ namespace WalletWasabi.Gui
{
if (_privacyLevelStrong != value)
{
+ RefreshMixUntilValue(_privacyLevelStrong, value);
_privacyLevelStrong = value;
if (ServiceConfiguration != default)
{
@@ -436,5 +439,13 @@ namespace WalletWasabi.Gui
return false;
}
}
+
+ private void RefreshMixUntilValue(int oldPrivacyLevel, int newPrivacyLevel)
+ {
+ if (MixUntilAnonymitySet == oldPrivacyLevel) // We are changing the current MixUntilAnonymitySet.
+ {
+ MixUntilAnonymitySet = newPrivacyLevel;
+ }
+ }
}
}

Refresh MixUntilAnonymitySet on PrivacyLevel change