1
0

support for MAX amounts

This commit is contained in:
Sander van Grieken
2022-06-29 11:42:19 +02:00
parent e69fc739ca
commit 2907698c17
4 changed files with 49 additions and 18 deletions

View File

@@ -79,6 +79,7 @@ Pane {
BtcField {
id: amount
fiatfield: amountFiat
enabled: !is_max.checked
Layout.preferredWidth: parent.width /3
onTextChanged: {
userEnteredPayment.amount = is_max.checked ? MAX : Config.unitsToSats(amount.text)
@@ -107,6 +108,7 @@ Pane {
id: amountFiat
btcfield: amount
visible: Daemon.fx.enabled
enabled: !is_max.checked
Layout.preferredWidth: parent.width /3
}
@@ -243,7 +245,6 @@ Pane {
title: qsTr('Confirm Payment')
finalizer: TxFinalizer {
wallet: Daemon.currentWallet
onAmountChanged: console.log(amount.satsInt)
}
}
}