qml: only save invoice if canSave
This commit is contained in:
@@ -114,7 +114,8 @@ Item {
|
|||||||
})
|
})
|
||||||
var canComplete = !Daemon.currentWallet.isWatchOnly && Daemon.currentWallet.canSignWithoutCosigner
|
var canComplete = !Daemon.currentWallet.isWatchOnly && Daemon.currentWallet.canSignWithoutCosigner
|
||||||
dialog.accepted.connect(function() {
|
dialog.accepted.connect(function() {
|
||||||
invoice.saveInvoice()
|
if (invoice.canSave)
|
||||||
|
invoice.saveInvoice()
|
||||||
if (!canComplete) {
|
if (!canComplete) {
|
||||||
if (Daemon.currentWallet.isWatchOnly) {
|
if (Daemon.currentWallet.isWatchOnly) {
|
||||||
dialog.finalizer.saveOrShow()
|
dialog.finalizer.saveOrShow()
|
||||||
|
|||||||
Reference in New Issue
Block a user