1
0

qml: detect channel backups in send dialog

This commit is contained in:
Sander van Grieken
2023-03-14 10:20:42 +01:00
parent c0ce0296f8
commit 4979346881
2 changed files with 17 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ ElDialog {
property InvoiceParser invoiceParser
signal txFound(data: string)
signal channelBackupFound(data: string)
parent: Overlay.overlay
modal: true
@@ -32,6 +33,8 @@ ElDialog {
function dispatch(data) {
if (bitcoin.isRawTx(data)) {
txFound(data)
} else if (Daemon.currentWallet.isValidChannelBackup(data)) {
channelBackupFound(data)
} else {
invoiceParser.recipient = data
}