fix selection bug.
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/PrivacyControlViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/PrivacyControlViewModel.cs
@@ -60,6 +60,11 @@ public partial class LabelViewModel : ViewModelBase
continue;
}
+ if (label.IsBlackListed != IsBlackListed)
+ {
+ continue;
+ }
+
yield return label;
}
}
@@ -120,7 +125,7 @@ public partial class PrivacyControlViewModel : DialogViewModelBase<IEnumerable<S
private void WhiteListLabels(IEnumerable<LabelViewModel> labels)
{
- foreach (var label in labels.Where(x => x.IsBlackListed))
+ foreach (var label in labels.Where(x => x.IsBlackListed).ToList())
{
LabelsBlackList.Remove(label);
@@ -134,7 +139,7 @@ public partial class PrivacyControlViewModel : DialogViewModelBase<IEnumerable<S
private void BlackListLabels(IEnumerable<LabelViewModel> labels)
{
- foreach (var label in labels.Where(x => !x.IsBlackListed))
+ foreach (var label in labels.Where(x => !x.IsBlackListed).ToList())
{
LabelsWhiteList.Remove(label);

fix selection bug.