Turn off for CJ tab
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinJoinTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinJoinTabViewModel.cs
@@ -48,7 +48,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
{
Password = "";
- CoinsList = new CoinListViewModel(Global);
+ CoinsList = new CoinListViewModel(Global, CoinListContainerType.CoinJoinTabViewModel);
Observable.FromEventPattern(CoinsList, nameof(CoinsList.DequeueCoinsPressed)).Subscribe(_ => OnCoinsListDequeueCoinsPressedAsync());

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinListViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinListViewModel.cs
@@ -39,7 +39,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
private bool _isAnyCoinSelected;
private bool _labelExposeCommonOwnershipWarning;
public Global Global { get; }
-
+ public CoinListContainerType CoinListContainerType { get; }
public ReactiveCommand<Unit, Unit> EnqueueCoin { get; }
public ReactiveCommand<Unit, Unit> DequeueCoin { get; }
public ReactiveCommand<Unit, Unit> SelectAllCheckBoxCommand { get; }
@@ -230,9 +230,10 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
}
- public CoinListViewModel(Global global)
+ public CoinListViewModel(Global global, CoinListContainerType coinListContainerType)
{
Global = global;
+ CoinListContainerType = coinListContainerType;
AmountSortDirection = SortOrder.Decreasing;
RefreshOrdering();
@@ -497,8 +498,9 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
SetSelections();
SelectionChanged?.Invoke(this, cvm);
TotalAmount = Coins.Where(x => x.IsSelected).Sum(x => x.Amount.ToDecimal(NBitcoin.MoneyUnit.BTC));
- LabelExposeCommonOwnershipWarning =
- Coins.Any(c =>
+ LabelExposeCommonOwnershipWarning = CoinListContainerType == CoinListContainerType.CoinJoinTabViewModel ?
+ false // Because in CoinJoin the selection algorithm makes sure not to combine red with non-red.
+ : Coins.Any(c =>
c.AnonymitySet == 1 && c.IsSelected
&& Coins.Any(x => x.AnonymitySet > 1 && x.IsSelected));
}

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
@@ -98,7 +98,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
ResetUi();
SetAmountWatermarkAndToolTip(Money.Zero);
- CoinList = new CoinListViewModel(Global);
+ CoinList = new CoinListViewModel(Global, CoinListContainerType.SendTabViewModel);
Observable.FromEventPattern(CoinList, nameof(CoinList.SelectionChanged))
.ObserveOn(RxApp.MainThreadScheduler)
.Subscribe(_ => SetFeesAndTexts());

ADD
WalletWasabi.Gui/Models/CoinListContainerType.cs
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace WalletWasabi.Gui.Models
+{
+ public enum CoinListContainerType
+ {
+ SendTabViewModel,
+ CoinJoinTabViewModel
+ }
+}

Turn off for CJ tab