From 9a2a65c20fb0cb657eb06542d7bfdce29df83e83 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Fri, 16 May 2025 14:00:23 +0200 Subject: [PATCH] qml: add psbt_nostr enable/disable option in Preferences --- electrum/gui/qml/components/Preferences.qml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/electrum/gui/qml/components/Preferences.qml b/electrum/gui/qml/components/Preferences.qml index c77f812f7..0d34f7036 100644 --- a/electrum/gui/qml/components/Preferences.qml +++ b/electrum/gui/qml/components/Preferences.qml @@ -231,6 +231,24 @@ Pane { } } + RowLayout { + Layout.columnSpan: 2 + Layout.fillWidth: true + spacing: 0 + Switch { + id: psbtNostr + onCheckedChanged: { + if (activeFocus) + AppController.setPluginEnabled('psbt_nostr', checked) + } + } + Label { + Layout.fillWidth: true + text: qsTr('Nostr Cosigner') + wrapMode: Text.Wrap + } + } + RowLayout { Layout.columnSpan: 2 Layout.fillWidth: true @@ -465,5 +483,6 @@ Pane { setMaxBrightnessOnQrDisplay.checked = Config.setMaxBrightnessOnQrDisplay useRecoverableChannels.checked = Config.useRecoverableChannels syncLabels.checked = AppController.isPluginEnabled('labels') + psbtNostr.checked = AppController.isPluginEnabled('psbt_nostr') } }