1
0

qml: only save invoice if canSave

This commit is contained in:
Sander van Grieken
2025-06-30 12:54:29 +02:00
parent 10e3bad884
commit 39c0523773

View File

@@ -114,7 +114,8 @@ Item {
})
var canComplete = !Daemon.currentWallet.isWatchOnly && Daemon.currentWallet.canSignWithoutCosigner
dialog.accepted.connect(function() {
invoice.saveInvoice()
if (invoice.canSave)
invoice.saveInvoice()
if (!canComplete) {
if (Daemon.currentWallet.isWatchOnly) {
dialog.finalizer.saveOrShow()