1
0

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.
This commit is contained in:
f321x
2025-11-27 13:24:39 +01:00
parent af4dc24d87
commit c575abc8e2

View File

@@ -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."""