Fix "clicking Customize twice changes the toggle switch from on to off"
MODIFY
WalletWasabi.Fluent/ViewModels/CoinJoinProfiles/ManualCoinJoinProfileViewModel.cs
WalletWasabi.Fluent/ViewModels/CoinJoinProfiles/ManualCoinJoinProfileViewModel.cs
@@ -4,13 +4,14 @@ namespace WalletWasabi.Fluent.ViewModels.CoinJoinProfiles;
public class ManualCoinJoinProfileViewModel : CoinJoinProfileViewModelBase
{
- public ManualCoinJoinProfileViewModel(int anonScoreTarget, int feeRateMedianTimeFrameHours)
+ public ManualCoinJoinProfileViewModel(int anonScoreTarget, int feeRateMedianTimeFrameHours, bool redCoinIsolation)
{
AnonScoreTarget = anonScoreTarget;
FeeRateMedianTimeFrameHours = feeRateMedianTimeFrameHours;
+ RedCoinIsolation = redCoinIsolation;
}
- public ManualCoinJoinProfileViewModel(KeyManager keyManager) : this(keyManager.AnonScoreTarget, keyManager.FeeRateMedianTimeFrameHours)
+ public ManualCoinJoinProfileViewModel(KeyManager keyManager) : this(keyManager.AnonScoreTarget, keyManager.FeeRateMedianTimeFrameHours, keyManager.RedCoinIsolation)
{
}
@@ -21,4 +22,5 @@ public class ManualCoinJoinProfileViewModel : CoinJoinProfileViewModelBase
public override int AnonScoreTarget { get; }
public override int FeeRateMedianTimeFrameHours { get; }
+ public override bool RedCoinIsolation { get; }
}

MODIFY
WalletWasabi.Fluent/ViewModels/Dialogs/ManualCoinJoinProfileDialogViewModel.cs
WalletWasabi.Fluent/ViewModels/Dialogs/ManualCoinJoinProfileDialogViewModel.cs
@@ -45,7 +45,7 @@ public partial class ManualCoinJoinProfileDialogViewModel : DialogViewModelBase<
var target = AnonScoreTarget;
var hours = (int)Math.Floor(SelectedTimeFrame.TimeFrame.TotalHours);
- Close(DialogResultKind.Normal, new ManualCoinJoinProfileDialogViewModelResult(auto, isolateRed, new ManualCoinJoinProfileViewModel(target, hours)));
+ Close(DialogResultKind.Normal, new ManualCoinJoinProfileDialogViewModelResult(auto, isolateRed, new ManualCoinJoinProfileViewModel(target, hours, isolateRed)));
});
}

Fix "clicking Customize twice changes the toggle switch from on to off"