1
0

qt,qml: move get_text_not_enough_funds_mentioning_frozen and get_frozen_balance_str to backend wallet

Note: the qt gui used to include FX in get_frozen_balance_str, but that is not replicated now.
This commit is contained in:
Sander van Grieken
2025-01-31 18:03:21 +01:00
parent 37f0069f2a
commit 605b511b43
5 changed files with 21 additions and 33 deletions

View File

@@ -230,9 +230,9 @@ ElDialog {
Connections {
target: invoice.amountOverride
function onSatsIntChanged() {
console.log('amuontOverride satsIntChanged, sats=' + invoice.amountOverride.satsInt)
console.log('amountOverride satsIntChanged, sats=' + invoice.amountOverride.satsInt)
if (amountMax.checked) // amountOverride updated by max amount estimate
amountBtc.text = Config.formatSats(invoice.amountOverride.satsInt)
amountBtc.text = Config.formatSatsForEditing(invoice.amountOverride.satsInt)
}
}
}

View File

@@ -183,7 +183,7 @@ ElDialog {
target: channelopener.amount
function onSatsIntChanged() {
if (is_max.checked) // amount updated by max amount estimate
amountBtc.text = Config.formatSats(channelopener.amount.satsInt)
amountBtc.text = Config.formatSatsForEditing(channelopener.amount.satsInt)
}
}
}