1
0

Qt: disable swapserver dialog if we are using http

This commit is contained in:
ThomasV
2025-01-03 10:39:24 +01:00
parent 29a8c41025
commit 4d9c33c33f

View File

@@ -47,7 +47,8 @@ class SwapDialog(WindowModalDialog, QtEventListener):
menu.addConfig(
self.config.cv.LIGHTNING_ALLOW_INSTANT_SWAPS,
).setEnabled(self.lnworker.can_have_recoverable_channels())
menu.addAction(_('Choose swap server'), lambda: self.window.choose_swapserver_dialog(transport))
if not self.config.SWAPSERVER_URL:
menu.addAction(_('Choose swap server'), lambda: self.window.choose_swapserver_dialog(transport))
vbox.addLayout(toolbar)
self.description_label = WWLabel(self.get_description())
self.send_amount_e = BTCAmountEdit(self.window.get_decimal_point)