From 6d593e3373888eb5ec55fa1fe487a4106f23692a Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 4 Oct 2024 15:44:34 +0000 Subject: [PATCH] qt gui: settings: make two_trampoline cb conditional on trampoline_cb The setting is irrelevant if trampoline is disabled. This clears up potential confusion, as per user "js" on irc. --- electrum/gui/qt/settings_dialog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/electrum/gui/qt/settings_dialog.py b/electrum/gui/qt/settings_dialog.py index c826a339a546..7f1fedbb19c7 100644 --- a/electrum/gui/qt/settings_dialog.py +++ b/electrum/gui/qt/settings_dialog.py @@ -130,6 +130,7 @@ def on_trampoline_checked(_x): else: self.network.run_from_another_thread( self.network.stop_gossip()) + legacy_add_trampoline_cb.setEnabled(use_trampoline) util.trigger_callback('ln_gossip_sync_progress') # FIXME: update all wallet windows util.trigger_callback('channels_updated', self.wallet) @@ -137,6 +138,7 @@ def on_trampoline_checked(_x): legacy_add_trampoline_cb = checkbox_from_configvar(self.config.cv.LIGHTNING_LEGACY_ADD_TRAMPOLINE) legacy_add_trampoline_cb.setChecked(self.config.LIGHTNING_LEGACY_ADD_TRAMPOLINE) + legacy_add_trampoline_cb.setEnabled(trampoline_cb.isChecked()) def on_legacy_add_trampoline_checked(_x): self.config.LIGHTNING_LEGACY_ADD_TRAMPOLINE = legacy_add_trampoline_cb.isChecked() legacy_add_trampoline_cb.stateChanged.connect(on_legacy_add_trampoline_checked)