enable selection CJing coins
MODIFY
WalletWasabi.Fluent/ViewModels/CoinControl/Core/CoinCoinControlItemViewModel.cs
WalletWasabi.Fluent/ViewModels/CoinControl/Core/CoinCoinControlItemViewModel.cs
@@ -19,7 +19,6 @@ public class CoinCoinControlItemViewModel : CoinControlItemViewModelBase
Labels = smartCoin.HdPubKey.Label;
BannedUntilUtc = smartCoin.BannedUntilUtc;
IsSelected = false;
- CanBeSelected = !IsCoinjoining;
ScriptType = ScriptType.FromEnum(smartCoin.ScriptType);
}

MODIFY
WalletWasabi.Fluent/ViewModels/CoinControl/Core/CoinControlItemViewModelBase.cs
WalletWasabi.Fluent/ViewModels/CoinControl/Core/CoinControlItemViewModelBase.cs
@@ -12,7 +12,10 @@ public abstract class CoinControlItemViewModelBase : ViewModelBase
protected CoinControlItemViewModelBase()
{
- CanBeSelected = !IsCoinjoining;
+ // Temporarily enable the selection no matter what.
+ // Should be again restricted once https://github.com/zkSNACKs/WalletWasabi/issues/9972 is implemented.
+ // CanBeSelected = !IsCoinjoining;
+ CanBeSelected = true;
}
public bool IsPrivate => Labels == CoinPocketHelper.PrivateFundsText;

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletCoins/WalletCoinViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletCoins/WalletCoinViewModel.cs
@@ -28,7 +28,6 @@ public partial class WalletCoinViewModel : ViewModelBase, IDisposable
Coin = coin;
Amount = Coin.Amount;
- ToggleSelectCommand = ReactiveCommand.Create(() => IsSelected = !IsSelected, canExecute: this.WhenAnyValue(x => x.CoinJoinInProgress).Select(x => !x));
Coin.WhenAnyValue(c => c.Confirmed).Subscribe(x => Confirmed = x).DisposeWith(_disposables);
Coin.WhenAnyValue(c => c.HdPubKey.Cluster.Labels).Subscribe(x => SmartLabel = x).DisposeWith(_disposables);
@@ -38,8 +37,10 @@ public partial class WalletCoinViewModel : ViewModelBase, IDisposable
Coin.WhenAnyValue(c => c.BannedUntilUtc).WhereNotNull().Subscribe(x => BannedUntilUtcToolTip = $"Can't participate in coinjoin until: {x:g}").DisposeWith(_disposables);
Coin.WhenAnyValue(c => c.Height).Select(_ => Coin.GetConfirmations()).Subscribe(x => ConfirmedToolTip = $"{x} confirmation{TextHelpers.AddSIfPlural(x)}").DisposeWith(_disposables);
- // Remove selection when coin participates in a coinjoin.
- this.WhenAnyValue(x => x.CoinJoinInProgress).Where(x => x).Subscribe(_ => IsSelected = false);
+ // Temporarily enable the selection no matter what.
+ // Should be again restricted once https://github.com/zkSNACKs/WalletWasabi/issues/9972 is implemented.
+ ToggleSelectCommand = ReactiveCommand.Create(() => IsSelected = !IsSelected/*, canExecute: this.WhenAnyValue(x => x.CoinJoinInProgress).Select(x => !x)*/);
+ // this.WhenAnyValue(x => x.CoinJoinInProgress).Where(x => x).Subscribe(_ => IsSelected = false); // Remove selection when coin participates in a coinjoin.
}
public ICommand ToggleSelectCommand { get; }

MODIFY
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletCoins/Columns/SelectionColumnView.axaml
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletCoins/Columns/SelectionColumnView.axaml
x:DataType="walletcoins:WalletCoinViewModel"
x:CompileBindings="True"
x:Class="WalletWasabi.Fluent.Views.Wallets.Advanced.WalletCoins.Columns.SelectionColumnView">
- <CheckBox IsChecked="{Binding IsSelected}" Margin="2 0" HorizontalAlignment="Center" VerticalAlignment="Center" IsVisible="{Binding !CoinJoinInProgress}" />
+ <!-- Temporarily enable the selection no matter what. -->
+ <!-- Should be again restricted once https://github.com/zkSNACKs/WalletWasabi/issues/9972 is implemented. -->
+ <!-- IsVisible="{Binding !CoinJoinInProgress}" -->
+ <CheckBox IsChecked="{Binding IsSelected}" Margin="2 0" HorizontalAlignment="Center" VerticalAlignment="Center" />
</UserControl>

enable selection CJing coins