1
0

qml: invert, more strict check in determine_can_pay for invoice types,

also disable paste button while PI is being evaluated
This commit is contained in:
Sander van Grieken
2024-01-17 14:09:57 +01:00
parent 4469e9989d
commit e2bb7df54a
2 changed files with 2 additions and 1 deletions

View File

@@ -66,6 +66,7 @@ ElDialog {
FlatButton {
Layout.fillWidth: true
Layout.preferredWidth: 1
enabled: !invoiceParser.busy
icon.source: '../../icons/copy_bw.png'
text: qsTr('Paste')
onClicked: {

View File

@@ -337,7 +337,7 @@ class QEInvoice(QObject, QtEventListener):
self.canPay = False
self.canSave = False
if self.invoiceType in [QEInvoice.Type.Invalid, QEInvoice.Type.LNURLPayRequest]:
if self.invoiceType not in [QEInvoice.Type.LightningInvoice, QEInvoice.Type.OnchainInvoice]:
return
if not self.amountOverride.isEmpty: