forget selected suggestion on cancel
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
@@ -10,6 +10,7 @@ using NBitcoin;
using ReactiveUI;
using WalletWasabi.Blockchain.Analysis.Clustering;
using WalletWasabi.Blockchain.TransactionBuilding;
+using WalletWasabi.Blockchain.TransactionOutputs;
using WalletWasabi.Blockchain.Transactions;
using WalletWasabi.Exceptions;
using WalletWasabi.Fluent.Helpers;
@@ -457,6 +458,8 @@ public partial class TransactionPreviewViewModel : RoutableViewModel
{
_cancellationTokenSource.Cancel();
_cancellationTokenSource.Dispose();
+
+ _info.ChangelessCoins = Enumerable.Empty<SmartCoin>(); // Clear ChangelessCoins on cancel, so the user can undo the optimization.
}
base.OnNavigatedFrom(isInHistory);

forget selected suggestion on cancel