only rebuild txn if the fee slider was adjusted.
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendFeeViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendFeeViewModel.cs
@@ -43,6 +43,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
private bool _updatingCurrentValue;
private double _lastConfirmationTarget;
private bool _isSilent;
+ private int _entrySliderValue = -1;
public SendFeeViewModel(Wallet wallet, TransactionInfo transactionInfo, bool isSilent)
{
@@ -71,11 +72,18 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
.Subscribe(SetXAxisCurrentValue);
NextCommand = ReactiveCommand.CreateFromTask(async () =>
+ {
+ if (SliderValue == _entrySliderValue)
+ {
+ Navigate().Back();
+ }
+ else
{
_lastConfirmationTarget = CurrentConfirmationTarget;
_transactionInfo.ConfirmationTimeSpan = CalculateConfirmationTime(_lastConfirmationTarget);
await OnNextAsync();
+ }
});
}
@@ -134,6 +142,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
{
UpdateFeeEstimates(_wallet.Network == Network.TestNet ? TestNetFeeEstimates : feeProvider.AllFeeEstimate.Estimations);
CurrentConfirmationTarget = InitCurrentConfirmationTarget();
+ _entrySliderValue = SliderValue;
}
else
{

only rebuild txn if the fee slider was adjusted.