From c575abc8e2267b6787a5671e88abdcc00157f026 Mon Sep 17 00:00:00 2001 From: f321x Date: Thu, 27 Nov 2025 13:24:39 +0100 Subject: [PATCH] qt: update tabs on exit of SettingsDialog Update the tabs after the SettingsDialog gets closed, some values might have to be updated according to the new configuration. --- electrum/gui/qt/main_window.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py index f7c1ec965..41448840f 100644 --- a/electrum/gui/qt/main_window.py +++ b/electrum/gui/qt/main_window.py @@ -2720,6 +2720,10 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger, QtEventListener): run_hook('close_settings_dialog') if d.need_restart: self.show_warning(_('Please restart Electrum to activate the new GUI settings'), title=_('Success')) + else: + # Some values might need to be updated if settings have changed. + # For example 'Can send' in the lightning tab will change if the fees config is changed. + self.refresh_tabs() def _show_closing_warnings(self) -> bool: """Show any closing warnings and return True if the user chose to quit anyway."""