From 93d85a0b0e84774031c80430236a70b703b1689a Mon Sep 17 00:00:00 2001 From: f321x Date: Mon, 15 Dec 2025 14:25:06 +0100 Subject: [PATCH] qt: disable Submarine Payment tab if not swap_manager Disable the `Submarine Payments` tab if the swap_manager is None (the wallet has no lightning support). --- electrum/gui/qt/confirm_tx_dialog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qt/confirm_tx_dialog.py b/electrum/gui/qt/confirm_tx_dialog.py index 3961c0901..5549d7e76 100644 --- a/electrum/gui/qt/confirm_tx_dialog.py +++ b/electrum/gui/qt/confirm_tx_dialog.py @@ -303,7 +303,8 @@ class TxEditor(WindowModalDialog, QtEventListener, Logger): # always show onchain payment tab self.tab_widget.addTab(self.onchain_tab, _('Onchain Transaction')) - allow_swaps = self.allow_preview and self.payee_outputs # allow_preview is false for ln channel opening txs + # allow_preview is false for ln channel opening txs + allow_swaps = self.allow_preview and self.payee_outputs and self.swap_manager if self.config.WALLET_ENABLE_SUBMARINE_PAYMENTS and allow_swaps: i = self.tab_widget.addTab(self.submarine_payment_tab, _('Submarine Payment')) tooltip = self.config.cv.WALLET_ENABLE_SUBMARINE_PAYMENTS.get_long_desc()