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