coinjoin tab shows warning if no coins are selected on dequeue button
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinJoinTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinJoinTabViewModel.cs
@@ -101,6 +101,11 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
DequeueCommand = ReactiveCommand.Create(async () =>
{
+ if (!CoinsList.Coins.Any(c => c.IsSelected))
+ {
+ SetWarningMessage("No coins are selected to dequeue.");
+ return;
+ }
await DoDequeueAsync(CoinsList.Coins.Where(c => c.IsSelected));
});
@@ -340,6 +345,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
#pragma warning disable RECS0165 // Asynchronous methods should return a Task instead of void
+
private async void CoinsList_DequeueCoinsPressedAsync()
#pragma warning restore RECS0165 // Asynchronous methods should return a Task instead of void
{

- coinjoin tab shows warning if no coins are selected on dequeue button