fix amount issue
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
@@ -123,6 +123,20 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
FeeDisplayFormat = (FeeDisplayFormat)(Enum.ToObject(typeof(FeeDisplayFormat), Global.UiConfig.FeeDisplayFormat) ?? FeeDisplayFormat.SatoshiPerByte);
SetFeesAndTexts();
+ this.WhenAnyValue(x => x.AmountText)
+ .ObserveOn(RxApp.MainThreadScheduler)
+ .Subscribe(x =>
+ {
+ if (Money.TryParse(x.TrimStart('~', ' '), out Money amountBtc))
+ {
+ SetAmountWatermark(amountBtc);
+ }
+ else
+ {
+ SetAmountWatermark(Money.Zero);
+ }
+ });
+
AmountKeyUpCommand = ReactiveCommand.Create((KeyEventArgs key) =>
{
var amount = AmountText;
@@ -154,15 +168,6 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
}
- if (Money.TryParse(amount.TrimStart('~', ' '), out Money amountBtc))
- {
- SetAmountWatermark(amountBtc);
- }
- else
- {
- SetAmountWatermark(Money.Zero);
- }
-
SetFeesAndTexts();
});

fix amount issue