From ae15c0527b40aec4929ccf1eb65433b14bc6a435 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Thu, 29 Sep 2022 13:18:13 +0200 Subject: [PATCH] qml: expose bolt11_fallback in preferences --- electrum/gui/qml/components/Preferences.qml | 12 ++++++++++++ electrum/gui/qml/qeconfig.py | 10 ++++++++++ 2 files changed, 22 insertions(+) diff --git a/electrum/gui/qml/components/Preferences.qml b/electrum/gui/qml/components/Preferences.qml index b4d6924fa..2291a8ff1 100644 --- a/electrum/gui/qml/components/Preferences.qml +++ b/electrum/gui/qml/components/Preferences.qml @@ -222,6 +222,17 @@ Pane { Config.useGossip = currentValue == 'gossip' } } + + Switch { + id: useFallbackAddress + text: qsTr('Use onchain fallback address for Lightning invoices') + Layout.columnSpan: 2 + onCheckedChanged: { + if (activeFocus) + Config.useFallbackAddress = checked + } + } + } } @@ -275,6 +286,7 @@ Pane { fiatEnable.checked = Daemon.fx.enabled spendUnconfirmed.checked = Config.spendUnconfirmed lnRoutingType.currentIndex = Config.useGossip ? 0 : 1 + useFallbackAddress.checked = Config.useFallbackAddress var plugins = AppController.plugins for (var i=0; i