1
0

plugins: psbt_nostr: move can_send_psbt logic from GUI to backend, fix qml wallet switch bug

This commit is contained in:
Sander van Grieken
2025-04-16 09:47:41 +02:00
parent eb52090fee
commit 182accb9fb
4 changed files with 22 additions and 15 deletions

View File

@@ -36,7 +36,7 @@ Item {
property variant dialog
text: qsTr('Nostr')
icon.source: Qt.resolvedUrl('../../../gui/icons/network.png')
visible: Daemon.currentWallet.isMultisig && Daemon.currentWallet.walletType != '2fa'
visible: AppController.plugin('psbt_nostr').canSendPsbt(Daemon.currentWallet, dialog.text)
onClicked: {
console.log('about to psbt nostr send')
psbt_nostr_send_button.enabled = false