Skip to content

Commit

Permalink
qt gui: settings: make two_trampoline cb conditional on trampoline_cb
Browse files Browse the repository at this point in the history
The setting is irrelevant if trampoline is disabled.
This clears up potential confusion, as per user "js" on irc.
  • Loading branch information
SomberNight committed Oct 4, 2024
1 parent 276488e commit 6d593e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions electrum/gui/qt/settings_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,15 @@ 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)
trampoline_cb.stateChanged.connect(on_trampoline_checked)

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)
Expand Down

0 comments on commit 6d593e3

Please sign in to comment.