saving target anonymity set to config fix
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinJoinTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinJoinTabViewModel.cs
@@ -120,7 +120,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
{
TargetPrivacy = TargetPrivacy.Strong;
});
- TargetButtonCommand = ReactiveCommand.Create(() =>
+ TargetButtonCommand = ReactiveCommand.Create(async () =>
{
switch (TargetPrivacy)
{
@@ -140,6 +140,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
TargetPrivacy = TargetPrivacy.Some;
break;
}
+ Global.Config.MixUntilAnonymitySet = CoinJoinUntilAnonimitySet;
+ await Global.Config.ToFileAsync();
});
this.WhenAnyValue(x => x.Password).Subscribe(async x =>
@@ -179,12 +181,6 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
});
- this.WhenAnyValue(x => x.CoinJoinUntilAnonimitySet).Subscribe(async coinJoinUntilAnonimitySet =>
- {
- Global.Config.MixUntilAnonymitySet = coinJoinUntilAnonimitySet;
- await Global.Config.ToFileAsync();
- });
-
this.WhenAnyValue(x => x.TargetPrivacy).Subscribe(target =>
{
CoinJoinUntilAnonimitySet = GetTargetLevel(target);

saving target anonymity set to config fix